Skip to content

Commit 0bcd7fe

Browse files
authored
Make it clear that kwargs is immutable (#35998)
See #35985
1 parent a55b12b commit 0bcd7fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/manual/functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,9 @@ function f(x; y=0, kwargs...)
602602
end
603603
```
604604

605-
Inside `f`, `kwargs` will be a key-value iterator over a named tuple. Named
606-
tuples (as well as dictionaries with keys of `Symbol`) can be passed as keyword
607-
arguments using a semicolon in a call, e.g. `f(x, z=1; kwargs...)`.
605+
Inside `f`, `kwargs` will be an immutable key-value iterator over a named tuple.
606+
Named tuples (as well as dictionaries with keys of `Symbol`) can be passed as
607+
keyword arguments using a semicolon in a call, e.g. `f(x, z=1; kwargs...)`.
608608

609609
If a keyword argument is not assigned a default value in the method definition,
610610
then it is *required*: an [`UndefKeywordError`](@ref) exception will be thrown

0 commit comments

Comments
 (0)