1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

Merge pull request #332 from roberth/patch-2

This commit is contained in:
Valentin Gagarin 2023-05-30 17:57:06 +02:00 committed by GitHub
commit dec25a814e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,9 +115,9 @@ nix-repl> 1 + 2
```
:::{note}
The Nix language by default uses lazy evaluation, and will only compute values when needed.
The Nix language uses lazy evaluation, and `nix repl` by default only computes values when needed.
Some examples show results of strict evaluation for clarity.
Some examples show a fully evaluated data structure for clarity.
If your output does not match the example, try prepending `:p` to the input expression.
Example:
@ -175,9 +175,9 @@ $ nix-instantiate --eval
:::
:::{note}
The Nix language by default uses lazy evaluation, and will only compute values when needed.
The Nix language uses lazy evaluation, and `nix-instantiate` by default only computes values when needed.
Some examples show results of strict evaluation for clarity.
Some examples show a fully evaluated data structure for clarity.
If your output does not match the example, try adding the `--strict` option to `nix-instantiate`.
Example: