Update docs on assignment operator (#6373)
This commit is contained in:
parent
8ea78b1bc9
commit
248caaf27e
2 changed files with 3 additions and 5 deletions
|
|
@ -185,9 +185,8 @@ to a storage location:
|
|||
var x = "abc" # introduces a new variable `x` and assigns a value to it
|
||||
x = "xyz" # assigns a new value to `x`
|
||||
|
||||
``=`` is the *assignment operator*. The assignment operator cannot be
|
||||
overloaded, overwritten or forbidden, but this might change in a future version
|
||||
of Nim. You can declare multiple variables with a single assignment
|
||||
``=`` is the *assignment operator*. The assignment operator can be
|
||||
overloaded. You can declare multiple variables with a single assignment
|
||||
statement and all the variables will have the same value:
|
||||
|
||||
.. code-block::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue