Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(lasagna) Remove ambiguity in example for total_time_in_minutes #534

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

M1N0RM1N3R
Copy link
Contributor

According to the example before,

pub fn total_time_in_minutes(layers: Int, elapsed: Int) {preparation_time_in_minutes(layers) + remaining_minutes_in_oven(elapsed)}

and

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.

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.
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@lpil lpil merged commit 600595e into exercism:main Nov 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants