updated 'Void context' section specifying more precisely that assignment to result triggers MANDATORY void context FOR THE SUBSEQUENT EXPRESSIONS

This commit is contained in:
Iakiv Kramarenko 2015-11-02 18:50:10 +02:00
commit 3a5a7a4edf

View file

@ -65,7 +65,7 @@ Void context
In a list of statements every expression except the last one needs to have the In a list of statements every expression except the last one needs to have the
type ``void``. In addition to this rule an assignment to the builtin ``result`` type ``void``. In addition to this rule an assignment to the builtin ``result``
symbol also triggers a ``void`` context: symbol also triggers a mandatory ``void`` context for the subsequent expressions:
.. code-block:: nim .. code-block:: nim
proc invalid*(): string = proc invalid*(): string =