about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-01T22·20+0100
committerVincent Ambo <tazjin@google.com>2019-08-01T22·20+0100
commita2610a9b33707e895eb5910f938032c1fadf1406 (patch)
tree0f712b6d50e7e10e138a0d4dd1d64236a2dc6cf8
parentfe3b0d370688d8ebd4e77cd594f2c7351d341e6d (diff)
Add note about 'rec' in attribute sets
-rw-r--r--nix/nix-1p/README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md
index c0df448a43..2b41962673 100644
--- a/nix/nix-1p/README.md
+++ b/nix/nix-1p/README.md
@@ -96,6 +96,9 @@ second line
 
 # attribute sets (field access with dot syntax)
 { a = 15; b = "something else"; }
+
+# recursive attribute sets (fields can reference each other)
+rec { a = 15; b = a * 2; }
 ```
 
 ## Variable bindings