diff options
Diffstat (limited to 'src/strings/strings.go')
-rw-r--r-- | src/strings/strings.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings/strings.go b/src/strings/strings.go index 11c558c4c3..d8cc09a24e 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -570,7 +570,7 @@ func Repeat(s string, count int) string { if count < 0 { panic("strings: negative Repeat count") } - if len(s) >= maxInt/count { + if len(s) > maxInt/count { panic("strings: Repeat output length overflow") } n := len(s) * count |