Skip to content

Commit

Permalink
fix: slice upper bound is not included
Browse files Browse the repository at this point in the history
  • Loading branch information
dpastoor committed Oct 27, 2022
1 parent 2b16399 commit a58a8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func newLs(lsOpts lsOpts) error {
if len(entries) < lsOpts.num {
lsOpts.num = len(entries)
}
entries = entries[:lsOpts.num-1]
entries = entries[:lsOpts.num]
// TODO: replace with actual table
fmt.Println("version | install time")
fmt.Println("--------------------------------")
Expand Down

0 comments on commit a58a8bb

Please sign in to comment.