diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.txt | 2 | ||||
-rw-r--r-- | doc/tut2.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.txt b/doc/manual.txt index da229d169..1c410d5a3 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -2498,7 +2498,7 @@ different; for this a special setter syntax is needed: proc host*(s: TSocket): int {.inline.} = ## getter of hostAddr - return s.FHost + s.FHost var s: TSocket diff --git a/doc/tut2.txt b/doc/tut2.txt index 581239cc7..d2ba8b8a9 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -126,7 +126,7 @@ The syntax for type conversions is ``destination_type(expression_to_convert)`` .. code-block:: nimrod proc getID(x: TPerson): int = - return TStudent(x).id + TStudent(x).id The ``EInvalidObjectConversion`` exception is raised if ``x`` is not a ``TStudent``. |