summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-20 17:55:25 +0200
committerAraq <rumpf_a@web.de>2019-04-20 17:55:25 +0200
commit5edc5fc6509804a7d13c4892b5cbf9c5ae80968c (patch)
tree3e5d5d275c61b246ab50a9e1842d2b311bdfce95 /doc
parent135f8678702fd9dc2214cf31b19aef07ad30f373 (diff)
downloadNim-5edc5fc6509804a7d13c4892b5cbf9c5ae80968c.tar.gz
manual_experimental: cleanup the type/typedesc confusions, typedesc is here to stay for good
Diffstat (limited to 'doc')
-rw-r--r--doc/manual_experimental.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual_experimental.rst b/doc/manual_experimental.rst
index 95eab0100..228c20339 100644
--- a/doc/manual_experimental.rst
+++ b/doc/manual_experimental.rst
@@ -486,9 +486,9 @@ The concept types can be parametric just like the regular generic types:
     M.data[m * M.N + n] = v
 
   # Adapt the Matrix type to the concept's requirements
-  template Rows*(M: type Matrix): int = M.M
-  template Cols*(M: type Matrix): int = M.N
-  template ValueType*(M: type Matrix): type = M.T
+  template Rows*(M: typedesc[Matrix]): int = M.M
+  template Cols*(M: typedesc[Matrix]): int = M.N
+  template ValueType*(M: typedesc[Matrix]): typedesc = M.T
 
   -------------
   ### usage.nim