Merge pull request #867 from reactormonk/no_explicit_return
removed explicit return in the documentation
This commit is contained in:
commit
c1707e920e
3 changed files with 24 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue