diff options
Diffstat (limited to 'strings/strings.go')
| -rw-r--r-- | strings/strings.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/strings.go b/strings/strings.go index 007714e2..cf80f39c 100644 --- a/strings/strings.go +++ b/strings/strings.go @@ -33,7 +33,7 @@ func Indent(width int, indent, s string) (string, error) { res := make([]byte, 0, len(s)+len(indent)*lines) bol := true - for i := 0; i < len(s); i++ { + for i := range len(s) { c := s[i] if bol && c != '\n' { res = append(res, indent...) |
