From 024a644609bb854a31a83b1dade0e9d3e1a37337 Mon Sep 17 00:00:00 2001 From: PickSquid Date: Thu, 28 Nov 2024 08:21:05 -0700 Subject: [PATCH] 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. --- exercises/concept/lasagna/.docs/instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/lasagna/.docs/instructions.md b/exercises/concept/lasagna/.docs/instructions.md index bb6b499e1..d257befb0 100644 --- a/exercises/concept/lasagna/.docs/instructions.md +++ b/exercises/concept/lasagna/.docs/instructions.md @@ -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