removed explicit return in the documentation
This commit is contained in:
parent
96e616198d
commit
a90f0f50cf
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue