summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2024-12-30 11:17:48 +0000
committerPhil Jones <philj56@gmail.com>2024-12-30 11:17:58 +0000
commit0897d69ddd41ff1e0c841693421f49e19fcaba44 (patch)
treec24a6f1a57a0949623e714a72ff703813b8f8257 /src
parente2bed7eda881a4273f61742f38eaae6b71daf340 (diff)
Fix comment typo.
Diffstat (limited to 'src')
-rw-r--r--src/string_vec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_vec.c b/src/string_vec.c
index 7a8493f..eb3e117 100644
--- a/src/string_vec.c
+++ b/src/string_vec.c
@@ -136,7 +136,7 @@ void string_ref_vec_history_sort(struct string_ref_vec *restrict vec, struct his
/*
* To find elements without assuming the vector is pre-sorted, we use a
* hash table, which results in O(N+M) work (rather than O(N*M) for
- * linear search.
+ * linear search).
*/
GHashTable *hash = g_hash_table_new(g_str_hash, g_str_equal);
for (size_t i = 0; i < vec->count; i++) {