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

Expecting something that wasn't taught. #153

Closed
Hisamera opened this issue May 9, 2019 · 0 comments
Closed

Expecting something that wasn't taught. #153

Hisamera opened this issue May 9, 2019 · 0 comments
Labels
A-exercises Area: Exercises

Comments

@Hisamera
Copy link

Hisamera commented May 9, 2019

In the exercises/if/if1.rs there is a request for
"// Do not use:
// - return"
Coming from C++ I didn't know that Rust makes a distinction between expressions and statments, the comma problem hit me a little too early and made me lose like half an hour to figure how to do it without return. I propose to delete that "// - return" and leave the rest because it is quite heavliy explained in the "3.3 Functions" part of "the book". Everyone that is doing those exercises will notice that anyway.

@komaeda komaeda added the A-exercises Area: Exercises label Jul 8, 2019
pedantic79 pushed a commit to pedantic79/rustlings that referenced this issue Apr 11, 2020
ppp3 pushed a commit to ppp3/rustlings that referenced this issue May 23, 2022
dmoore04 pushed a commit to dmoore04/rustlings that referenced this issue Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-exercises Area: Exercises
Projects
None yet
Development

No branches or pull requests

2 participants