Merge pull request #867 from reactormonk/no_explicit_return

removed explicit return in the documentation
This commit is contained in:
Andreas Rumpf 2014-02-10 00:22:50 +01:00
commit c1707e920e
3 changed files with 24 additions and 23 deletions

View file

@ -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``.
@ -238,7 +238,7 @@ is needed:
proc host*(s: TSocket): int {.inline.} =
## getter of hostAddr
return s.FHost
s.FHost
var
s: TSocket