1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00

Merge pull request #92 from liff/04-remove-obsolete-note

Update Attribute sets example and remove obsolete note
This commit is contained in:
Graham Christensen 2018-12-11 10:00:49 -05:00 committed by GitHub
commit edf2059dd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

@ -211,12 +211,6 @@
<screen><xi:include href="./04/set-basics.txt" parse="text" /></screen>
<note><para>
Here the string representation printed in the repl is wrong, you can't write
<literal>{ 123 = "num"; }</literal>, because 123 is not an identifier. You also need a semicolon
(<literal>;</literal>) after every key-value assignment.
</para></note>
<para>
For those reading Nix expressions from nixpkgs: do not confuse attribute sets with
argument sets used in functions.

View file

@ -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"; }