Replace _set_at by _push

This commit is contained in:
Patrick Pelissier committed 2018-07-03 15:07:36 +02:00
1 parent df14e5bcb6
commit aae460623d
1 file changed
+1 -1
+1 -1
View File
@@ -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));
}
}