Skip to content

Commit 600595e

Browse files
M1N0RM1N3Rlpil
authored andcommitted
Remove ambiguity in example for total_time_in_minutes
According to the example before, ```gleam pub fn total_time_in_minutes(layers: Int, elapsed: Int) {preparation_time_in_minutes(layers) + remaining_minutes_in_oven(elapsed)} ``` and ```gleam pub fn total_time_in_minutes(layers: Int, elapsed: Int) {preparation_time_in_minutes(layers) + elapsed} ``` would both be valid, but only the latter is correct.
1 parent 837d2f5 commit 600595e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ preparation_time_in_minutes(2)
3636
Define the `total_time_in_minutes` function that takes two arguments: the first argument is the number of layers you added to the lasagna, and the second argument is the number of minutes the lasagna has been in the oven. The function should return how many minutes in total you've worked on cooking the lasagna, which is the sum of the preparation time in minutes, and the time in minutes the lasagna has spent in the oven at the moment.
3737

3838
```gleam
39-
total_time_in_minutes(3, 20)
40-
// -> 26
39+
total_time_in_minutes(3, 10)
40+
// -> 16
4141
```
4242

4343
## 5. Create a notification that the lasagna is ready

0 commit comments

Comments
 (0)