summary refs log tree commit diff stats
path: root/doc/manual/procs.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-28 02:43:41 +0100
committerAraq <rumpf_a@web.de>2014-11-28 02:43:41 +0100
commit105a0616a9da7c9c85adfa488a1db42eb17daafb (patch)
tree06142dcf57ce1fdfc5adcc5d389a3146dd9c228b /doc/manual/procs.txt
parentd456b882b16c44d7862682fd5e898868d5171ac5 (diff)
downloadNim-105a0616a9da7c9c85adfa488a1db42eb17daafb.tar.gz
implemented procCall builtin
Diffstat (limited to 'doc/manual/procs.txt')
-rw-r--r--doc/manual/procs.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/manual/procs.txt b/doc/manual/procs.txt
index f48203c3b..d048615eb 100644
--- a/doc/manual/procs.txt
+++ b/doc/manual/procs.txt
@@ -16,7 +16,7 @@ the best match for the arguments. Example:
 
 .. code-block:: nim
 
-  proc toLower(c: Char): Char = # toLower for characters
+  proc toLower(c: char): char = # toLower for characters
     if c in {'A'..'Z'}:
       result = chr(ord(c) + (ord('a') - ord('A')))
     else:
@@ -150,8 +150,8 @@ means ``echo f 1, f 2`` is parsed as ``echo(f(1), f(2))`` and not as
 more argument in this case:
 
 .. code-block:: nim
-  proc optarg(x:int, y:int = 0):int = x + y
-  proc singlearg(x:int):int = 20*x
+  proc optarg(x: int, y: int = 0): int = x + y
+  proc singlearg(x: int): int = 20*x
   
   echo optarg 1, " ", singlearg 2  # prints "1 40"
   
@@ -237,7 +237,7 @@ The following builtin procs cannot be overloaded for reasons of implementation
 simplicity (they require specialized semantic checking)::
 
   declared, defined, definedInScope, compiles, low, high, sizeOf, 
-  is, of, shallowCopy, getAst, astToStr, spawn
+  is, of, shallowCopy, getAst, astToStr, spawn, procCall
 
 Thus they act more like keywords than like ordinary identifiers; unlike a 
 keyword however, a redefinition may `shadow`:idx: the definition in