diff options
author | Araq <rumpf_a@web.de> | 2014-05-02 08:44:03 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-05-02 08:44:03 +0200 |
commit | d0438540d00c64fe4fa140a6b7c448a2ae4a7110 (patch) | |
tree | f0845c3f1421cb0845c18aa03cd8d08b213b8a3e /lib/system.nim | |
parent | 81d404979780386ecd1756a41dfc09497e194f26 (diff) | |
download | Nim-d0438540d00c64fe4fa140a6b7c448a2ae4a7110.tar.gz |
implemented builtin noncopying slice
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 6263f7b24..cfc8ceb6f 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2620,7 +2620,7 @@ proc `[]=`*[Idx, T](a: var array[Idx, T], x: TSlice[int], b: openArray[T]) = if L == b.len: for i in 0 .. <L: a[i+x.a] = b[i] else: - sysFatal(EOutOfRange, "differing lengths for slice assignment") + sysFatal(EOutOfRange, "different lengths for slice assignment") proc `[]`*[Idx, T](a: array[Idx, T], x: TSlice[Idx]): seq[T] = ## slice operation for arrays. Negative indexes are **not** supported @@ -2642,7 +2642,7 @@ proc `[]=`*[Idx, T](a: var array[Idx, T], x: TSlice[Idx], b: openArray[T]) = a[j] = b[i] inc(j) else: - sysFatal(EOutOfRange, "differing lengths for slice assignment") + sysFatal(EOutOfRange, "different lengths for slice assignment") proc `[]`*[T](s: seq[T], x: TSlice[int]): seq[T] = ## slice operation for sequences. Negative indexes are supported. |