Skip to content

Commit

Permalink
Merges #8451 manually. Fixes #8099.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Oct 4, 2018
1 parent 8c2f576 commit 269b957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/collections/sequtils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ template applyIt*(varSeq, op: untyped) =
## var nums = @[1, 2, 3, 4]
## nums.applyIt(it * 3)
## assert nums[0] + nums[3] == 15
for i in 0 ..< varSeq.len:
for i in low(varSeq) .. high(varSeq):
let it {.inject.} = varSeq[i]
varSeq[i] = op

Expand Down

0 comments on commit 269b957

Please sign in to comment.