1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Describe the or operation on attribute sets slightly more

This commit is contained in:
Ana Hobden 2023-05-12 11:03:09 -07:00
parent 916da456cb
commit 17fb346ec6
2 changed files with 7 additions and 3 deletions

View file

@ -36,7 +36,7 @@
## Attribute selection
Select the attribute denoted by attribute path *attrpath* from [attribute set] *attrset*.
If the attribute doesnt exist, return *value* if provided, otherwise abort evaluation.
If the attribute doesnt exist, return the *expr* after `or` if provided, otherwise abort evaluation.
<!-- FIXME: the following should to into its own language syntax section, but that needs more work to fit in well -->