Fix derivable objects in documentation
This commit is contained in:
parent
41ce6571a3
commit
f4ce521cd8
1 changed files with 2 additions and 2 deletions
|
|
@ -351,7 +351,7 @@ dispatch.
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
type
|
type
|
||||||
Expression = object ## abstract base class for an expression
|
Expression = object of RootObj ## abstract base class for an expression
|
||||||
Literal = object of Expression
|
Literal = object of Expression
|
||||||
x: int
|
x: int
|
||||||
PlusExpr = object of Expression
|
PlusExpr = object of Expression
|
||||||
|
|
@ -387,7 +387,7 @@ dispatching:
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
type
|
type
|
||||||
Thing = object
|
Thing = object of RootObj
|
||||||
Unit = object of Thing
|
Unit = object of Thing
|
||||||
x: int
|
x: int
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue