lib.path: Add argument docs when missing
This commit is contained in:
parent
dee307ff30
commit
e3ff8dbeda
1 changed files with 4 additions and 1 deletions
|
@ -307,7 +307,9 @@ in /* No rec! Add dependencies on this file at the top. */ {
|
||||||
splitRoot "/foo/bar"
|
splitRoot "/foo/bar"
|
||||||
=> <error>
|
=> <error>
|
||||||
*/
|
*/
|
||||||
splitRoot = path:
|
splitRoot =
|
||||||
|
# The path to split the root off of
|
||||||
|
path:
|
||||||
assert assertMsg
|
assert assertMsg
|
||||||
(isPath path)
|
(isPath path)
|
||||||
"lib.path.splitRoot: Argument is of type ${typeOf path}, but a path was expected";
|
"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>
|
=> <error>
|
||||||
*/
|
*/
|
||||||
subpath.components =
|
subpath.components =
|
||||||
|
# The subpath string to split into components
|
||||||
subpath:
|
subpath:
|
||||||
assert assertMsg (isValid subpath) ''
|
assert assertMsg (isValid subpath) ''
|
||||||
lib.path.subpath.components: Argument is not a valid subpath string:
|
lib.path.subpath.components: Argument is not a valid subpath string:
|
||||||
|
|
Loading…
Reference in a new issue