removed explicit return in the documentation

This commit is contained in:
Simon Hafner 2014-02-03 12:40:51 -06:00
commit a90f0f50cf
2 changed files with 2 additions and 2 deletions

View file

@ -2498,7 +2498,7 @@ different; for this a special setter syntax is needed:
proc host*(s: TSocket): int {.inline.} = proc host*(s: TSocket): int {.inline.} =
## getter of hostAddr ## getter of hostAddr
return s.FHost s.FHost
var var
s: TSocket s: TSocket

View file

@ -126,7 +126,7 @@ The syntax for type conversions is ``destination_type(expression_to_convert)``
.. code-block:: nimrod .. code-block:: nimrod
proc getID(x: TPerson): int = proc getID(x: TPerson): int =
return TStudent(x).id TStudent(x).id
The ``EInvalidObjectConversion`` exception is raised if ``x`` is not a The ``EInvalidObjectConversion`` exception is raised if ``x`` is not a
``TStudent``. ``TStudent``.