Skip to content

Commit d50951d

Browse files
fabiodinatalevaeng
andauthored
docs: fix instructions of lasagna master (#852)
* Update instructions.md The instructions of Task 3 have been clarified. * Correcting after first revision * Update exercises/concept/lasagna-master/.docs/instructions.md Co-authored-by: Christian Willner <[email protected]> * Adding the possibility of using a reference also for the second parameter --------- Co-authored-by: Christian Willner <[email protected]>
1 parent b23bddf commit d50951d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/concept/lasagna-master/.docs/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ It was amazing and had something special to it.
4949
The friend sent you the list of ingredients and told you the last item on the list is the "secret ingredient" that made the meal so special.
5050
Now you want to add that secret ingredient to your recipe as well.
5151

52-
Write a function `addSecretIngredient` that accepts two `string` vectors of ingredients as parameters.
53-
The first parameter is the list your friend sent you, the second is the ingredient list of your own recipe.
52+
Write a function `addSecretIngredient` that accepts two `vector of strings` as parameters.
53+
The first parameter is a _reference_ to the ingredients of your own recipe, and the second _vector_ of strings has the ingredients your friend sent you.
5454
The last element in your ingredient list is always `"?"`.
5555
The function should replace it with the last item from your friends list.
5656
**Note:** `addSecretIngredient` does not return anything - you should modify the list of your ingredients directly.
57-
The list with your friend's ingredients should **not** be modified.
57+
The list with your friend's ingredients can also be a reference (for improving the performance), but it should **not** be modified.
5858
Make sure the list will not be modified with a `const` reference.
5959

6060
```cpp

0 commit comments

Comments
 (0)