summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2012-09-29 18:43:41 +0300
committerZahary Karadjov <zahary@gmail.com>2012-10-03 01:59:49 +0300
commit92f70b08f9c4d6108f61f37c29c1b001c6173a19 (patch)
treed300dc678f8371b73d19d0286a78722616cd07cf /doc
parentf8184e349027dc0273a3552526af18dc03df0f79 (diff)
downloadNim-92f70b08f9c4d6108f61f37c29c1b001c6173a19.tar.gz
table constructors now mimic more closely the syntax of case... of...
see the safePrintF example in the manual as a motivation
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/manual.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 4d9375f30..b5f5d9d63 100755
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -2244,10 +2244,10 @@ Table constructor
 A `table constructor`:idx: is syntactic sugar for an array constructor:
 
 .. code-block:: nimrod
-  {"key1": "value1", "key2": "value2"}
+  {"key1": "value1", "key2", "key3": "value2"}
   
   # is the same as:
-  [("key1", "value1"), ("key2", "value2")]
+  [("key1", "value1"), ("key2", "value2"), ("key3", "value")]
 
 
 The empty table can be written ``{:}`` (in contrast to the empty set