Marking the iteration variable as a reference, .iter() vs .iter_mut()

[quote="lucatrv, post:20, topic:782"]
Please notice I'm currently learning Rust
[/quote]I kinda am too.

And when learning, it's fine to comment on problematic places you find in learning materials or clear mistakes in the language design. Suggesting your ideas for how every little part of the language should be done differently is less understandable.

1 Like

I correct myself: after playing with Rust a little more I now understand exactly this behavior and do not find it neither confusing or misleading. What threw me off at the beginning was the post on StackOverflow.