Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazuh committed Nov 14, 2023
1 parent afb23dd commit c7de699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -60,7 +60,7 @@ hashstrset_free(weekdays_set);
Will output this:
```
There are 5 weeek days:
There are 5 weekdays:
- Monday
- Friday
- Wednesday
Expand Down
4 changes: 2 additions & 2 deletions src/hashtables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit c7de699

Please sign in to comment.