diff options
Diffstat (limited to 'test/iterators.tm')
| -rw-r--r-- | test/iterators.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/iterators.tm b/test/iterators.tm index 1f7ce342..0a2d2818 100644 --- a/test/iterators.tm +++ b/test/iterators.tm @@ -3,7 +3,7 @@ enum PairIteration(Done, Next(x:Text, y:Text)) func pairwise(strs:[Text])->func()->PairIteration: i := 1 return func(): - if i + 1 > #strs: return PairIteration.Done + if i + 1 > strs.length: return PairIteration.Done i += 1 return PairIteration.Next(strs[i-1], strs[i]) |
