Summer School With The Rust Compiler
http://patshaughnessy.net/2018/10/24/summer-school-with-the-rust-compiler [patshaughnessy.net]
2018-10-25 20:37
Not sure if I learned more about rust or ruby here.
Rust is telling me that iter() yielded references to integers, but my code expected an actual integer, not a reference to an integer.
Now the array was mutated! It turns out Ruby passed integers to the closure by value, but strings by reference. Updating each string inside the loop also updated that string inside the array.
I managed to be surprised by both those statements.