1
0
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:
Fabian Bornhofen 2023-01-09 16:54:14 +01:00
parent 3ff2d5f43a
commit ba09385c4a

View File

@ -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.