summary refs log tree commit diff stats
path: root/doc/manual
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2017-08-28 21:44:35 +0800
committerAndreas Rumpf <rumpf_a@web.de>2017-08-28 15:44:35 +0200
commit22684370b0eb5938bc7a4172dc968e4c557a02ee (patch)
tree249ab747b22eeccb3be5ff7cfebcd4eec8ca7402 /doc/manual
parentb2aae477d105287ee54da94f7254d5c0f579fe4f (diff)
downloadNim-22684370b0eb5938bc7a4172dc968e4c557a02ee.tar.gz
remove ArrayDummySize with unchecked arrays (#5818)
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/ffi.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/manual/ffi.txt b/doc/manual/ffi.txt
index e9b52eaca..06fed1430 100644
--- a/doc/manual/ffi.txt
+++ b/doc/manual/ffi.txt
@@ -132,7 +132,7 @@ translated into a C array of undetermined size:
 
 .. code-block:: nim
   type
-    ArrayPart{.unchecked.} = array[0..0, int]
+    ArrayPart{.unchecked.} = array[0, int]
     MySeq = object
       len, cap: int
       data: ArrayPart
@@ -146,10 +146,6 @@ Produces roughly this C code:
     NI data[];
   } MySeq;
 
-The bounds checking done at compile time is not disabled for now, so to access
-``s.data[C]`` (where ``C`` is a constant) the array's index needs to
-include ``C``.
-
 The base type of the unchecked array may not contain any GC'ed memory but this
 is currently not checked.