nrc / r4cppp

Rust for C++ programmers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you add description of every variable is default immutable?

javaThonc opened this issue · comments

I feel like default immutable variable is not obvious to me when I first time read this tutorial. For example, I don’t see the reason why use all.iter_mut() in the loop example. Thanks in advance.