3 ms·
A lot of people didn't know! I made sure to put it in the book explicitly: https://doc.rust-lang.org/book/second-edition/ch18-01-all-the-places-for-patterns.htm
by steveklabnik 9y ago
A lot of people didn't know! I made sure to put it in the book explicitly: https://doc.rust-lang.org/book/second-edition/ch18-01-all-the-places-for-patterns.html#function-parameters https://doc.rust-lang.org/book/second-edition/ch18-01-all-th...
- Lev1a 9y agoHuh, was that also in the first edition? I learned using that and if this pattern matching pattern (heh) is indeed in there, I must have overread it...
- steveklabnik 9y agoI’m not sure, to be honest, it’s been a long time!