tpl/strings: Adjust the overflow validation in strings.Repeat
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 3 Jun 2018 07:35:45 +0000 (10:35 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 3 Jun 2018 07:35:45 +0000 (10:35 +0300)
commit90c774908530390daa5813fcdd31435999971359
tree0f0d7d0967d7ef937ce51ffef29458d213595d7a
parent13435a6f608306c5094fdcd72a1d9538727f91b2
tpl/strings: Adjust the overflow validation in strings.Repeat

This now matches the validation in the stdlib, but we return an error instead.
tpl/strings/strings.go
tpl/strings/strings_test.go