From c7de699b8e35ff2c08536a62cdbb40e0451b08d9 Mon Sep 17 00:00:00 2001 From: mazuh <marcell-mz@hotmail.com> Date: Tue, 14 Nov 2023 02:39:17 -0300 Subject: [PATCH] fix typos --- README.md | 4 ++-- src/hashtables.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 218dc88..5081cc0 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ hashstrset_add(weekdays_set, "Monday"); hashstrset_add(weekdays_set, "Monday"); // print set values -printf("There are %lu weeek days:\n", hashstrset_size(weekdays_set)); +printf("There are %lu weekdays:\n", hashstrset_size(weekdays_set)); HashStrSetValuesIterator *iterator = hashstrset_values_iterator(); while (hashstrset_values_iterator_seek(weekdays_set, iterator)) @@ -60,7 +60,7 @@ hashstrset_free(weekdays_set); Will output this: ``` -There are 5 weeek days: +There are 5 weekdays: - Monday - Friday - Wednesday diff --git a/src/hashtables.c b/src/hashtables.c index ff6bb7b..9a23146 100644 --- a/src/hashtables.c +++ b/src/hashtables.c @@ -169,7 +169,7 @@ bool hashstrset_remove(HashStrSet *set, char *value) * considering n as the total amount of buckets in the internal hash table, so it's always * more than the amount of filled buckets. * - * @return HashStrSetValuesIterator* + * @return HashStrSetValuesIterator instance, empty, ready to seek the set elements until its end. */ HashStrSetValuesIterator *hashstrset_values_iterator() { @@ -243,7 +243,7 @@ int main() hashstrset_add(weekdays_set, "Monday"); // print set values - printf("There are %lu weeek days:\n", hashstrset_size(weekdays_set)); + printf("There are %lu weekdays:\n", hashstrset_size(weekdays_set)); HashStrSetValuesIterator *iterator = hashstrset_values_iterator(); while (hashstrset_values_iterator_seek(weekdays_set, iterator))