Skip to content

Commit

Permalink
Remove ambiguity in example for total_time_in_minutes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
M1N0RM1N3R authored Nov 28, 2024
1 parent 837d2f5 commit 024a644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/concept/lasagna/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ preparation_time_in_minutes(2)
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.

```gleam
total_time_in_minutes(3, 20)
// -> 26
total_time_in_minutes(3, 10)
// -> 16
```

## 5. Create a notification that the lasagna is ready
Expand Down

0 comments on commit 024a644

Please sign in to comment.