comprehensive-rust
comprehensive-rust copied to clipboard
Rust does automatically takes a reference, sometimes
In day 1 afternoon, chapter "Shared References", we say in the speaker notes:
Rust does not automatically create references for you - the & is always required.
But this is not true - Rust can take (up to one) reference when invoking methods.