Skip to content

Commit c0ae896

Browse files
committed
Typos and emdash changes. (exercism#3780)
1 parent 0ce5bf5 commit c0ae896

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

concepts/sets/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Sets
22

33
A [`set`][type-set] is a _mutable_ and _unordered_ collection of [_hashable_][hashable] objects.
4-
Set members must be distinct -- duplicate items are not allowed.
5-
They can hold multiple different data types and even nested structures like a `tuple` of `tuples` -- as long as all elements can be _hashed_.
4+
Set members must be distinct duplicate items are not allowed.
5+
They can hold multiple different data types and even nested structures like a `tuple` of `tuples` as long as all elements can be _hashed_.
66
Sets also come in an immutable [`frozensets`][type-frozenset] flavor.
77

88
Sets are most commonly used to quickly remove duplicates from other data structures or item groupings.
@@ -360,7 +360,7 @@ The operator version of this method is `<set> - <other set 1> - <other set 2> -
360360
'Goose Berries', 'Strawberries'}
361361

362362
# Operators require sets.
363-
>>> berries_and_veggies - just_berries
363+
>>> berries_and_veggies - berries
364364
{'Artichokes','Asparagus','Broccoli','Kale',
365365
'Ramps','Rhubarb','Walking Onions','Watercress'}
366366
```

concepts/sets/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Sets
22

33
A [`set`][type-set] is a _mutable_ and _unordered_ collection of [_hashable_][hashable] objects.
4-
Set members must be distinct -- duplicate items are not allowed.
5-
They can hold multiple different data types and even nested structures like a `tuple` of `tuples` -- as long as all elements can be _hashed_.
4+
Set members must be distinct duplicate items are not allowed.
5+
They can hold multiple different data types and even nested structures like a `tuple` of `tuples` as long as all elements can be _hashed_.
66
Sets also come in an immutable [`frozensets`][type-frozenset] flavor.
77

88
Sets are most commonly used to quickly remove duplicates from other data structures or item groupings.

exercises/concept/cater-waiter/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You and your business partners operate a small catering company. You've just agr
44

55
## 1. Clean up Dish Ingredients
66

7-
The event recipes were added from various sources and their ingredients appear to have duplicate (_or more_) entries -- you don't want to end up purchasing excess items!
7+
The event recipes were added from various sources and their ingredients appear to have duplicate (_or more_) entries you don't want to end up purchasing excess items!
88
Before the shopping and cooking can commence, each dish's ingredient list needs to be "cleaned".
99

1010
Implement the `clean_ingredients(<dish_name>, <dish_ingredients>)` function that takes the name of a dish and a `list` of ingredients.
@@ -138,5 +138,5 @@ from sets_categories_data import example_dishes, EXAMPLE_INTERSECTION
138138

139139
>>> singleton_ingredients(example_dishes, EXAMPLE_INTERSECTION)
140140
...
141-
{'vegetable oil', 'vegetable stock', 'barley malt', 'tofu', 'fresh basil', 'lemon', 'ginger', 'honey', 'spaghetti', 'cornstarch', 'yeast', 'red onion', 'breadcrumbs', 'mixed herbs', 'garlic powder', 'celeriac', 'lemon zest', 'sunflower oil', 'mushrooms', 'silken tofu', 'smoked tofu', 'bell pepper', 'cashews', 'oregano', 'tomatoes', 'parsley', 'red pepper flakes', 'rosemary'}
141+
{'garlic powder', 'sunflower oil', 'mixed herbs', 'cornstarch', 'celeriac', 'honey', 'mushrooms', 'bell pepper', 'rosemary', 'parsley', 'lemon', 'yeast', 'vegetable oil', 'vegetable stock', 'silken tofu', 'tofu', 'cashews', 'lemon zest', 'smoked tofu', 'spaghetti', 'ginger', 'breadcrumbs', 'tomatoes', 'barley malt', 'red pepper flakes', 'oregano', 'red onion', 'fresh basil'}
142142
```

exercises/concept/cater-waiter/.docs/introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Sets
22

3-
A [`set`][type-set] is a _mutable_ and _unordered_ collection of [_hashable_][hashable] objects.
4-
Set members must be distinct -- duplicate items are not allowed.
5-
They can hold multiple different data types and even nested structures like a `tuple` of `tuples` -- as long as all elements can be _hashed_.
3+
A [`set`][type-set] is a _mutable_ and unordered_ collection of [_hashable_][hashable] objects.
4+
Set members must be distinct duplicate items are not allowed.
5+
They can hold multiple different data types and even nested structures like a `tuple` of `tuples` as long as all elements can be _hashed_.
66
Sets also come in an immutable [`frozensets`][type-frozenset] flavor.
77

88
Sets are most commonly used to quickly remove duplicates from other data structures or item groupings.
@@ -332,7 +332,7 @@ The operator version of this method is `<set> - <other set 1> - <other set 2> -
332332
'Goose Berries', 'Strawberries'}
333333

334334
# Operators require sets.
335-
>>> berries_and_veggies - just_berries
335+
>>> berries_and_veggies - berries
336336
{'Artichokes','Asparagus','Broccoli','Kale',
337337
'Ramps','Rhubarb','Walking Onions','Watercress'}
338338
```

exercises/concept/cater-waiter/sets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def categorize_dish(dish_name, dish_ingredients):
4343
"""Categorize `dish_name` based on `dish_ingredients`.
4444
4545
:param dish_name: str - dish to be categorized.
46-
:param dish_ingredients: list - ingredients for the dish.
46+
:param dish_ingredients: set - ingredients for the dish.
4747
:return: str - the dish name appended with ": <CATEGORY>".
4848
4949
This function should return a string with the `dish name: <CATEGORY>` (which meal category the dish belongs to).

0 commit comments

Comments
 (0)