diff options
-rw-r--r-- | nix.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix.html.markdown b/nix.html.markdown index 1d5a7778..cf412864 100644 --- a/nix.html.markdown +++ b/nix.html.markdown @@ -355,7 +355,7 @@ with builtins; [ # its contents. You can read files from anywhere. In this example, # we write a file into the store, and then read it back out. (let filename = toFile "foo.txt" "hello!"; in - [filename (builtins.readFile filename)]) + [filename (readFile filename)]) #=> [ "/nix/store/ayh05aay2anx135prqp0cy34h891247x-foo.txt" "hello!" ] # We can also download files into the Nix store. |