Skip to content

Commit

Permalink
use g1.22 range over int (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvndaai authored Oct 1, 2024
1 parent 22d6240 commit 71916fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctxerr.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func CallerFunc(skip int) string {
// CallerFuncs is a shortcut for calling CallerFunc many times
func CallerFuncs(skip, depth int) []string {
f := []string{}
for i := 0; i < depth; i++ {
for i := range depth {
f = append(f, CallerFunc(skip+i+1))
}
return f
Expand Down

0 comments on commit 71916fd

Please sign in to comment.