Unverified Commit 63c815dd authored by Jeremy Fleischman's avatar Jeremy Fleischman
Browse files

docs: fix typo: `readDir` -> `dirOf`

The example code here uses `dirOf`, not `readDir`. I assume this was
just a silly typo.
parent 7da68505
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -382,7 +382,7 @@ in
              (splitRoot p).root
              (splitRoot p).subpath

    - Trying to get the parent directory of `root` using [`readDir`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-readDir) returns `root` itself:
    - Trying to get the parent directory of `root` using [`dirOf`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-dirOf) returns `root` itself:

          dirOf (splitRoot p).root == (splitRoot p).root