mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
Merge pull request #2299 from def-/fix-procs-doc
Fix derivable objects in documentation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user