1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

docs: restore the important sentence about the mutable args that have to be marked on call

This commit is contained in:
Delyan Angelov 2022-06-23 21:15:21 +03:00
parent e5bbb23389
commit ccc3271493

View File

@ -2280,7 +2280,8 @@ Note that the embedded struct arguments are not necessarily stored in the order
### Immutable function args by default
In V function arguments are immutable by default.
In V function arguments are immutable by default, and mutable args have to be
marked on call.
Since there are also no globals, that means that the return values of the functions,
are a function of their arguments only, and their evaluation has no side effects