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
|
||||
type
|
||||
Expression = object ## abstract base class for an expression
|
||||
Expression = object of RootObj ## abstract base class for an expression
|
||||
Literal = object of Expression
|
||||
x: int
|
||||
PlusExpr = object of Expression
|
||||
|
|
@ -387,7 +387,7 @@ dispatching:
|
|||
|
||||
.. code-block:: nim
|
||||
type
|
||||
Thing = object
|
||||
Thing = object of RootObj
|
||||
Unit = object of Thing
|
||||
x: int
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue