aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2020-04-16 16:24:38 +0100
committerLouis Pilfold <louis@lpil.uk>2020-04-16 16:24:38 +0100
commit7d4a4ffc8362e5e5ceef01d5a1251e4116ed124d (patch)
tree7e9a21a74e9d4885df67aa735c2a6a02078b98ff /src
parentbfdde0ee0b60482f5d41e7e6cbae2b11f9daf08f (diff)
downloadgleam_stdlib-7d4a4ffc8362e5e5ceef01d5a1251e4116ed124d.tar.gz
gleam_stdlib-7d4a4ffc8362e5e5ceef01d5a1251e4116ed124d.zip
Remove extra string
Diffstat (limited to 'src')
-rw-r--r--src/gleam/string.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam
index b278c25..880ee6a 100644
--- a/src/gleam/string.gleam
+++ b/src/gleam/string.gleam
@@ -229,7 +229,7 @@ fn repeat_help(chunk: String, result: List(String), repeats: Int) -> String {
}
pub fn repeat(string: String, times times: Int) -> String {
- repeat_help(string, [""], times)
+ repeat_help(string, [], times)
}
/// Join many strings together with a given separator.