mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
manual: document builtins.functionArgs
The text is just a conversion of comment from src/libexpr/primops.cc
This commit is contained in:
parent
5eb93556f1
commit
29c0199d5c
2 changed files with 20 additions and 2 deletions
|
@ -1154,7 +1154,7 @@ static void prim_catAttrs(EvalState & state, const Pos & pos, Value * * args, Va
|
|||
|
||||
/* Return a set containing the names of the formal arguments expected
|
||||
by the function `f'. The value of each attribute is a Boolean
|
||||
denoting whether has a default value. For instance,
|
||||
denoting whether the corresponding argument has a default value. For instance,
|
||||
|
||||
functionArgs ({ x, y ? 123}: ...)
|
||||
=> { x = false; y = true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue