Skip to content
Myr

Fix a non-constant format string (#4189)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Go 1.24 now has a vet check about this that causes `go test` to fail: https://github.com/golang/go/issues/60529

authored by Elliott Sales de Andrade · committed by GitHub · parent b028cbd · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/algo/algo.go+1 added-1 removed
399 unmodified lines
400 I := i * width401 if i == 0 {402 fmt.Print(" ")403 for j := int(f); j <= lastIdx; j++ {404 fmt.Printf(" " + string(T[j]) + " ")404 fmt.Print(" " + string(T[j]) + " ")405 }406 fmt.Println()407 }408 fmt.Print(string(pattern[i]) + " ")
612 unmodified lines