arrays: fix typo error in #zip proc

This commit is contained in:
Ky-Anh Huynh 2014-12-26 18:38:54 +07:00
commit 953e0ba715

View file

@ -18,7 +18,7 @@ The size of the array is encoded in its type and cannot be accidentally lost. Th
``` nimrod
proc zip[I, T](a, b: array[I, T]):
array[I, tuple[a, b: T]] =
for i in low(A)..high(A):
for i in low(a)..high(a):
result[i] = (a[i], b[i])
let nameAndAddresses = names.zip(addresses)
@ -61,4 +61,4 @@ $ nim c -r matrix.nim
1, 1,
1, 1,
```
```