diff --git a/doc/manual.txt b/doc/manual.txt index da229d169b..1c410d5a3b 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 581239cc76..d2ba8b8a9b 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``.