We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6fbd21 commit 6ef577bCopy full SHA for 6ef577b
src/references/shared.md
@@ -39,8 +39,8 @@ value.
39
will recognize references as pointers. Later parts of the course will cover
40
how Rust prevents the memory-safety bugs that come from using raw pointers.
41
42
-- Rust does not automatically create references for you - the `&` is always
43
- required.
+- Explicit referencing with `&` is usually required. However, Rust performs
+ automatic referencing and dereferencing when invoking methods.
44
45
- Rust will auto-dereference in some cases, in particular when invoking methods
46
(try `r.is_ascii()`). There is no need for an `->` operator like in C++.
0 commit comments