rust-unofficial / too-many-lists

Learn Rust by writing Entirely Too Many linked lists
https://rust-unofficial.github.io/too-many-lists/
MIT License
3.16k stars 276 forks source link

modify second-iter-mut.md #273

Open lv0senku opened 1 year ago

lv0senku commented 1 year ago

Cool!
This is definitely fine for shared references because the whole point is that you can have tons of them at once. However mutable references can't coexist. The whole point is that they're exclusive.

I think the current code is what this paragraph means.