From 63c815dd7975eed86954036b852c072e8434fcba Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Mon, 12 May 2025 00:36:30 -0700 Subject: [PATCH] docs: fix typo: `readDir` -> `dirOf` The example code here uses `dirOf`, not `readDir`. I assume this was just a silly typo. --- lib/path/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/path/default.nix b/lib/path/default.nix index 1284bed94bb0..a03f6a04cafd 100644 --- a/lib/path/default.nix +++ b/lib/path/default.nix @@ -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