aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorTobias Pflug <tobias.pflug@gmail.com>2020-05-08 15:03:44 +0200
committerTobias Pflug <tobias.pflug@gmail.com>2020-05-08 15:03:44 +0200
commite3df9c2a6e867d0e038cb26af40501511607e007 (patch)
tree26dc2563d225790083e6713a7e2818908d627f81 /src/libutil/util.hh
parent5b8883faac0cff928a4359b4260b5be09a311d4b (diff)
Enable `dirOf` test
Adjusted the doc comment for `dirOf` to reflect the implementation behavior.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 8770add64..38a0f7a5c 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -58,8 +58,8 @@ Path canonPath(const Path & path, bool resolveSymlinks = false);
/* Return the directory part of the given canonical path, i.e.,
everything before the final `/'. If the path is the root or an
- immediate child thereof (e.g., `/foo'), this means an empty string
- is returned. */
+ immediate child thereof (e.g., `/foo'), this means `/'
+ is returned.*/
Path dirOf(const Path & path);
/* Return the base name of the given canonical path, i.e., everything