mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-02-12 07:56:25 +02:00
Add bullet point about mutable references
This commit is contained in:
parent
3ff2d5f43a
commit
ba09385c4a
@ -16,3 +16,4 @@ Some differences from C++:
|
||||
* We must dereference `ref_x` when assigning to it, similar to C pointers,
|
||||
* Rust will auto-dereference in some cases, in particular when invoking
|
||||
methods (try `count_ones`).
|
||||
* References that are declared as `mut` can be bound to different values over their lifetime.
|
||||
|
Loading…
x
Reference in New Issue
Block a user