Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit 863afbc

Browse files
committed
fixed bugs in the function info command
1 parent 8b4841d commit 863afbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/functionInfo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function code.
6666
end = 0
6767
}
6868
if start > 0 {
69-
for i := start; i >= end; i-- {
70-
run := fn.History[i]
69+
for i := start; i > end; i-- {
70+
run := fn.History[i-1]
7171
fmt.Printf("%s:%d | %s:%s | %s:%v\n",
7272
clsecondary("version"),
7373
run.Version,

0 commit comments

Comments
 (0)