fs: fix dirname documentation

This commit is contained in:
Jeremy Baxter 2024-03-24 14:10:04 +13:00
parent a1c2f49232
commit a27ebcd8c3

12
lfs.c
View file

@ -169,12 +169,12 @@ finish:
}
/***
* Returns the parent directory of the pathn
* given. Any trailing '/' characters are not
* counted as part of the directory name.
* If the given path is an empty string or contains
* no '/' characters, the string `"."` is returned,
* signifying the current directory.
* Returns the parent directory of the pathname given.
*
* Any trailing '/' characters are not counted
* as part of the directory name. If the given path is
* an empty string or contains no '/' characters, the string
* `"."` is returned.
*
* This is purely a string manipulation function and
* depends on no outside state.