Replace _set_at by _push
This commit is contained in:
1 parent
df14e5bcb6
commit
aae460623d
1 file changed
+1
-1
+1
-1
@@ -12,7 +12,7 @@ int main(void)
|
||||
M_LET(word, STRING_OPLIST)
|
||||
M_LET(wordcount, DICT_SET_OPLIST(dict_str, STRING_OPLIST)) {
|
||||
while (string_fget_word(word, " \t\n,.!;:?", stdin))
|
||||
dict_str_set_at(wordcount, word);
|
||||
dict_str_push(wordcount, word);
|
||||
printf ("Words: %zu\n", dict_str_size(wordcount));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user