aboutsummaryrefslogtreecommitdiff
path: root/src/dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dir.h b/src/dir.h
index 42ab29bb..4d4cf3da 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -25,11 +25,11 @@
namespace gitstatus {
-// On error, clears entries and returns false. Does not throw.
+// On error, leaves entries unchaged and returns false. Does not throw.
//
-// On success, fills entries with the names of files from the specified directory and returns true.
-// Every entry is a null-terminated string. At -1 offset is its d_type. All elements point into the
-// arena. They are sorted either by strcmp or strcasecmp depending on case_sensitive.
+// On success, appends names of files from the specified directory to entries and returns true.
+// Every appended entry is a null-terminated string. At -1 offset is its d_type. All elements
+// point into the arena. They are sorted either by strcmp or strcasecmp depending on case_sensitive.
//
// Does not close dir_fd.
//