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

Update main.rs in 3.3 function in listing #3865

Closed
wants to merge 1 commit into from

Conversation

aniketkumar7
Copy link

I have fixed the code by removing the semicolon.

URL to the section(s) of the book with this problem:
https://github.com/rust-lang/book/blob/main/listings/ch03-common-programming-concepts/no-listing-33-return-value-from-loop/src/main.rs#L8

@carols10cents
Copy link
Member

rustfmt puts the semicolon here, and we run rustfmt on all book listings. Thanks though!

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