diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-10-31 10:44:44 +0100 |
---|---|---|
committer | Arne Döring <arne.doering@gmx.net> | 2018-10-31 10:44:44 +0100 |
commit | 84db658eb4cf8f1d8ed8dd5c890257c1ce067362 (patch) | |
tree | 617a4dd25b5200ccb7139132cd1ea2fcf6e3980b /lib | |
parent | e6531216339655cd5bf9537afca3e493e4a8e0b9 (diff) | |
download | Nim-84db658eb4cf8f1d8ed8dd5c890257c1ce067362.tar.gz |
fix typo
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/strutils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 5fedfa57e..1285f0e1c 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -1730,7 +1730,7 @@ proc multiReplace*(s: string, replacements: varargs[(string, string)]): string { # Assume most chars in s are not candidates for any replacement operation if s[i] in fastChk: for sub, by in replacements.items: - if sub.len > 0 and s.continuesWith(sub[0], i): + if sub.len > 0 and s.continuesWith(sub, i): add result, by inc(i, sub.len) break sIteration |