diff options
Diffstat (limited to 'tests/views/tsplit_into_seq.nim')
-rw-r--r-- | tests/views/tsplit_into_seq.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/views/tsplit_into_seq.nim b/tests/views/tsplit_into_seq.nim index 409451601..49968f4c2 100644 --- a/tests/views/tsplit_into_seq.nim +++ b/tests/views/tsplit_into_seq.nim @@ -23,9 +23,8 @@ proc split*(s: string, seps: set[char] = Whitespace, while last < len(s) and s[last] notin seps: inc(last) if splits == 0: last = len(s) - {.noSideEffect.}: - result.add toOpenArray(s, first, last-1) - result.add toOpenArray(s, first, last-1) + result.add toOpenArray(s, first, last-1) + result.add toOpenArray(s, first, last-1) if splits == 0: break dec(splits) inc(last) |