Docs(manual): add clarification for default params (#18522)
* Docs(manual): add clarification for default params * Docs(manual): fix wording to refer to call time * Docs(manual): Clarify default parameter wording Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
This commit is contained in:
parent
bdfee32dc8
commit
1e7a10001a
1 changed files with 2 additions and 1 deletions
|
|
@ -3543,7 +3543,8 @@ separation of types and subsequent identifiers more distinct.
|
|||
proc foo(a; b: int; c, d: bool): int
|
||||
|
||||
A parameter may be declared with a default value which is used if the caller
|
||||
does not provide a value for the argument.
|
||||
does not provide a value for the argument. The value will be reevaluated
|
||||
every time the function is called.
|
||||
|
||||
.. code-block:: nim
|
||||
# b is optional with 47 as its default value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue