summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-05-13 20:48:33 +0300
committerZahary Karadjov <zahary@gmail.com>2017-05-13 20:48:44 +0300
commit672c24e4b8fcfc07cdba6a36a2fc0445cdc3d9e9 (patch)
treed10844a3ad545f64aef9582e87566524c3c2046c /doc
parent05bfa4799697a4e06c4777b03f8009bebd4129d9 (diff)
downloadNim-672c24e4b8fcfc07cdba6a36a2fc0445cdc3d9e9.tar.gz
fix affecting templates with explicit generic params
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/type_rel.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/type_rel.txt b/doc/manual/type_rel.txt
index 0c49f4e7f..1d1425934 100644
--- a/doc/manual/type_rel.txt
+++ b/doc/manual/type_rel.txt
@@ -147,7 +147,7 @@ also have pointer-like covariance:
 
 .. code-block:: nim
   type
-    GuiWidget = object of TObject
+    GuiWidget = object of RootObj
     Button = object of GuiWidget
     ComboBox = object of GuiWidget
 
@@ -184,7 +184,7 @@ sequence (i.e. it will be covariant only when instantiated with ``ptr`` and
 .. code-block:: nim
 
   type
-    Base = object of TObject
+    Base = object of RootObj
     Derived = object of Base
 
   proc consumeBaseValues(b: RingBuffer[Base]) = ...