aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/eval.md')
-rw-r--r--src/nix/eval.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/eval.md b/src/nix/eval.md
index 48d5aa597..d1daaf755 100644
--- a/src/nix/eval.md
+++ b/src/nix/eval.md
@@ -8,10 +8,10 @@ R""(
# nix eval --expr '1 + 2'
```
-* Evaluate a Nix expression to JSON:
+* Evaluate a Nix expression to JSON using the short-form expression flag:
```console
- # nix eval --json --expr '{ x = 1; }'
+ # nix eval --json -E '{ x = 1; }'
{"x":1}
```