summary refs log tree commit diff
path: root/lib/path
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2023-08-08 00:10:32 +0200
committerSilvan Mosberger <silvan.mosberger@tweag.io>2023-08-08 00:10:32 +0200
commite3ff8dbedaa0a0ee62b98b076531dbc62da50785 (patch)
tree7a06ae76a6fe8b8974233f4edf58ac820e3d48d9 /lib/path
parentdee307ff3023c98c11a193aae1a8341c6f46a22f (diff)
downloadnixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.tar
nixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.tar.gz
nixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.tar.bz2
nixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.tar.lz
nixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.tar.xz
nixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.tar.zst
nixpkgs-e3ff8dbedaa0a0ee62b98b076531dbc62da50785.zip
lib.path: Add argument docs when missing
Diffstat (limited to 'lib/path')
-rw-r--r--lib/path/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/path/default.nix b/lib/path/default.nix
index 5b2f28e90df..1a55a2a7be8 100644
--- a/lib/path/default.nix
+++ b/lib/path/default.nix
@@ -307,7 +307,9 @@ in /* No rec! Add dependencies on this file at the top. */ {
       splitRoot "/foo/bar"
       => <error>
   */
-  splitRoot = path:
+  splitRoot =
+    # The path to split the root off of
+    path:
     assert assertMsg
       (isPath path)
       "lib.path.splitRoot: Argument is of type ${typeOf path}, but a path was expected";
@@ -466,6 +468,7 @@ in /* No rec! Add dependencies on this file at the top. */ {
       => <error>
   */
   subpath.components =
+    # The subpath string to split into components
     subpath:
     assert assertMsg (isValid subpath) ''
       lib.path.subpath.components: Argument is not a valid subpath string: