summary refs log tree commit diff stats
path: root/doc/tut2.rst
diff options
context:
space:
mode:
authorhlaaftana <10591326+hlaaftana@users.noreply.github.com>2020-04-24 10:22:12 +0300
committerGitHub <noreply@github.com>2020-04-24 09:22:12 +0200
commitb2141fc2a12b239c4b24f38ffbd3ca629278630e (patch)
tree4ceb2352280d4d6637f91f6ae028ca8e71fef146 /doc/tut2.rst
parentdd5ccc3e5aeb927a65ac40117113a1ca6b02d48c (diff)
downloadNim-b2141fc2a12b239c4b24f38ffbd3ca629278630e.tar.gz
changed type() to typeof() in docs and error messages (#14084)
Diffstat (limited to 'doc/tut2.rst')
-rw-r--r--doc/tut2.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut2.rst b/doc/tut2.rst
index 419e06930..0338bdb1a 100644
--- a/doc/tut2.rst
+++ b/doc/tut2.rst
@@ -651,7 +651,7 @@ Example: Lifting Procs
     ##  # now abs(@[@[1,-2], @[-2,-3]]) == @[@[1,2], @[2,3]]
     proc fname[T](x: openarray[T]): auto =
       var temp: T
-      type outType = type(fname(temp))
+      type outType = typeof(fname(temp))
       result = newSeq[outType](x.len)
       for i in 0..<x.len:
         result[i] = fname(x[i])