mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 23:03:36 +00:00
Merge pull request #3509 from yashaka/void-context-doc-rephrase
updated 'Void context' doc specifying more precisely for what the void context is triggered
This commit is contained in:
@@ -65,7 +65,7 @@ Void context
|
||||
|
||||
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``
|
||||
symbol also triggers a ``void`` context:
|
||||
symbol also triggers a mandatory ``void`` context for the subsequent expressions:
|
||||
|
||||
.. code-block:: nim
|
||||
proc invalid*(): string =
|
||||
|
||||
Reference in New Issue
Block a user