comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

Rust does automatically takes a reference, sometimes

Open ChayimFriedman2 opened this issue 8 months ago • 4 comments

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.

ChayimFriedman2 avatar Mar 12 '25 22:03 ChayimFriedman2