Hands-on Rust: (pg. 83)

The very top of pg. 83 is a seemingly stray:

impl Map {

It’s preceded and followed by map implementation pieces, so perhaps it’s just a stray-- it may even be correctly placed, and I’m just mis-interpreting. Its placement on the page could be a blind spot.

2 Likes

Thank you! I’ve added it to the issue tracker, I’ll tidy that in beta 3. The source snippet is attempting to show you that map_idx is defined outside of the map implementation (which caused some confusion in the first beta). I’ll see if I can find a better way to express that.

3 Likes

Oh, yes, that’s quite common! I think in your other instances, you’ve included ellipsis and a close }. That would work here for sure.

3 Likes