diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-23T05·44+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-23T05·44+0100 |
commit | bca0e348597371ced98ce9a4c071491cf56534db (patch) | |
tree | e3c8a7789b68c22d77e2024ffca328b19481802e /third_party/nix/src/libexpr/nixexpr.hh | |
parent | d27c722e9efc981c4e48b6a85df586458ac87074 (diff) |
docs(3p/nix/libexpr): Add some comments about function calls r/825
These were things that took me a moment to realise.
Diffstat (limited to 'third_party/nix/src/libexpr/nixexpr.hh')
-rw-r--r-- | third_party/nix/src/libexpr/nixexpr.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/nixexpr.hh b/third_party/nix/src/libexpr/nixexpr.hh index 715dbd8d59f1..6d5d4f5f55e0 100644 --- a/third_party/nix/src/libexpr/nixexpr.hh +++ b/third_party/nix/src/libexpr/nixexpr.hh @@ -200,10 +200,11 @@ struct ExprList : Expr { struct Formal { Symbol name; - Expr* def; + Expr* def; // def = default, not definition Formal(const Symbol& name, Expr* def) : name(name), def(def){}; }; +// Describes structured function arguments (e.g. `{ a }: ...`) struct Formals { typedef std::list<Formal> Formals_; Formals_ formals; |