ref: d0d56d9d6667826ee3dc37d3f88ff957e0562b32
parent: d669dfe2fe0e03909d149f5fa7da1117c47ba814
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Apr 26 21:43:59 EDT 2018
dict: update dict_prefix()'s comment
--- a/dict.c
+++ b/dict.c
@@ -109,7 +109,7 @@
return idx >= 0 ? d->val[idx] : d->notfound;
}
-/* match a prefix of key; in the first call, *idx should be -1 */
+/* match a prefix of key; in the first call, *pos should be -1 */
int dict_prefix(struct dict *d, char *key, int *pos)
{
int *r = iset_get(d->map, dict_hash(d, key));