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

Refactor: Discard unused next return value and update documentation in Chapter 13 #4179

Closed
wants to merge 2 commits into from

Conversation

mavonarx
Copy link

This update refactors the build method in Listing 13-20 to explicitly discard the unused return value of the first use of args.next() in Chapter 13. To make it more clear the return value is not used.

Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

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

Thanks for the suggestion. What you suggested here would also be good and correct, but the text is actually just fine as is, and just calling args.next() without explicitly using let _ = with it is normal, idiomatic Rust, so I am going to leave it as is.

@chriskrycho chriskrycho closed this Jan 6, 2025
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