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

"Optional Values" section in basics.md uses println!("first value {}", first.unwrap()) without explaining why we don't need to dereference first.unwrap() #87

Open
josephrocca opened this issue May 27, 2019 · 0 comments

Comments

@josephrocca
Copy link
Contributor

Title pretty much explains it. I was going to do a pull request but wasn't sure how to explain it (I'm a rust newb).

I found this: https://stackoverflow.com/questions/27852613/why-does-printing-a-pointer-print-the-same-thing-as-printing-the-dereferenced-po?rq=1

@josephrocca josephrocca changed the title "Option Values" section in basics.md uses println!("first value {}", first.unwrap()) without explaining why we don't need to dereference first.unwrap() "Optional Values" section in basics.md uses println!("first value {}", first.unwrap()) without explaining why we don't need to dereference first.unwrap() May 27, 2019
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

1 participant