mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
b
is already defined if the user follows along in the repl
If a user follows along in the repl, the error won't occur as in section 4.6 the number 4 is assigned to `b`. To make this slightly less confusing and have the error appear as the user is following along we have to use a new variable.
This commit is contained in:
parent
f1acd7ed9f
commit
a96a0a35cc
|
@ -1,2 +1,2 @@
|
||||||
nix-repl> let a = (let b = 3; in b); in b
|
nix-repl> let a = (let c = 3; in c); in c
|
||||||
error: undefined variable `b' at (string):1:31
|
error: undefined variable `c' at (string):1:31
|
||||||
|
|
Loading…
Reference in a new issue