summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/manual/types.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/manual/types.txt b/doc/manual/types.txt
index c9ac6f062..babf3286f 100644
--- a/doc/manual/types.txt
+++ b/doc/manual/types.txt
@@ -490,6 +490,11 @@ to an open array parameter.
 The openarray type cannot be nested: multidimensional openarrays are not
 supported because this is seldom needed and cannot be done efficiently.
 
+.. code-block:: nim
+  proc testOpenArray(x: openArray[int]) = echo repr(x)
+
+  testOpenArray([1,2,3])  # array[]
+  testOpenArray(@[1,2,3]) # seq[]
 
 Varargs
 -------