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

unwrap! in docs looks like a macro #29542

Closed
mstevens opened this issue Nov 3, 2015 · 1 comment
Closed

unwrap! in docs looks like a macro #29542

mstevens opened this issue Nov 3, 2015 · 1 comment

Comments

@mstevens
Copy link

mstevens commented Nov 3, 2015

this is totally nitpicky, but:

reading the docs at https://doc.rust-lang.org/stable/book/error-handling.html

it says:

"Why? Because Rust will make us call unwrap! This can give us a nice bird's eye view of how we need to approach error handling."

even in my web browser with "unwrap" colored, this looks really like unwrap! is a macro. Which is confusing for the learner!

@porglezomp
Copy link
Contributor

Just looking at it quickly, I suggest

Why? Because Rust will make us call the unwrap method!

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

No branches or pull requests

3 participants