book
book copied to clipboard
Chapter 8.3 Improvement: Mentioning the tuple type
trafficstars
- [x] I have checked the latest
mainbranch to see if this has already been fixed - [x] I have searched existing issues and pull requests for duplicates
URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch08-03-hash-maps.html#accessing-values-in-a-hash-map
Description of the problem and suggested fix:
I think it is worth mentioning, that a tuple type (in this case (key, value)) is used as a loop variable to iterate over hash maps.