1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 14:56:54 +02:00

Remove spurious builtins. (#4086)

I am just getting started, but believe this `builtins.` name spacing here can go
This commit is contained in:
Florian Sesser
2023-12-14 14:55:30 +00:00
committed by GitHub
parent 9f317de120
commit 79538b5bcb

View File

@@ -355,7 +355,7 @@ with builtins; [
# its contents. You can read files from anywhere. In this example, # its contents. You can read files from anywhere. In this example,
# we write a file into the store, and then read it back out. # we write a file into the store, and then read it back out.
(let filename = toFile "foo.txt" "hello!"; in (let filename = toFile "foo.txt" "hello!"; in
[filename (builtins.readFile filename)]) [filename (readFile filename)])
#=> [ "/nix/store/ayh05aay2anx135prqp0cy34h891247x-foo.txt" "hello!" ] #=> [ "/nix/store/ayh05aay2anx135prqp0cy34h891247x-foo.txt" "hello!" ]
# We can also download files into the Nix store. # We can also download files into the Nix store.