diff --git a/pills/04-basics-of-language.xml b/pills/04-basics-of-language.xml index 96a2544..cae9826 100644 --- a/pills/04-basics-of-language.xml +++ b/pills/04-basics-of-language.xml @@ -211,12 +211,6 @@ - - Here the string representation printed in the repl is wrong, you can't write - { 123 = "num"; }, because 123 is not an identifier. You also need a semicolon - (;) after every key-value assignment. - - For those reading Nix expressions from nixpkgs: do not confuse attribute sets with argument sets used in functions. diff --git a/pills/04/set-basics.txt b/pills/04/set-basics.txt index 062f758..ce7fe28 100644 --- a/pills/04/set-basics.txt +++ b/pills/04/set-basics.txt @@ -1,3 +1,3 @@ nix-repl> s = { foo = "bar"; a-b = "baz"; "123" = "num"; } nix-repl> s -{ 123 = "num"; a-b = "baz"; foo = "bar"; } +{ "123" = "num"; a-b = "baz"; foo = "bar"; }