diff options
Diffstat (limited to 'src/doc/rust.md')
| -rw-r--r-- | src/doc/rust.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md index 4e30b5537c6..d37b33d2316 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -2485,7 +2485,7 @@ before the expression they apply to. `*` : Dereference. When applied to a [pointer](#pointer-types) it denotes the pointed-to location. For pointers to mutable locations, the resulting [lvalue](#lvalues-rvalues-and-temporaries) can be assigned to. - On non-pointer types, it calls calls the `deref` method of the `std::ops::Deref` trait, or the + On non-pointer types, it calls the `deref` method of the `std::ops::Deref` trait, or the `deref_mut` method of the `std::ops::DerefMut` trait (if implemented by the type and required for an outer expression that will or could mutate the dereference), and produces the result of dereferencing the `&` or `&mut` borrowed pointer returned from the overload method. |
