mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
docs: fix typo: readDir
-> dirOf
The example code here uses `dirOf`, not `readDir`. I assume this was just a silly typo.
This commit is contained in:
parent
7da685054c
commit
63c815dd79
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ in
|
||||||
(splitRoot p).root
|
(splitRoot p).root
|
||||||
(splitRoot p).subpath
|
(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
|
dirOf (splitRoot p).root == (splitRoot p).root
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue