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 * Returns the parent directory of the pathname given.
* given. Any trailing '/' characters are not *
* counted as part of the directory name. * Any trailing '/' characters are not counted
* If the given path is an empty string or contains * as part of the directory name. If the given path is
* no '/' characters, the string `"."` is returned, * an empty string or contains no '/' characters, the string
* signifying the current directory. * `"."` is returned.
* *
* This is purely a string manipulation function and * This is purely a string manipulation function and
* depends on no outside state. * depends on no outside state.