File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3463,7 +3463,7 @@ note: previous borrow ends here
3463
3463
3464
3464
This is a big error message. Let's dig into it for a moment. There are three
3465
3465
parts: the error and two notes. The error says what we expected, we cannot have
3466
- two pointers that point to the same memory.
3466
+ two mutable pointers that point to the same memory.
3467
3467
3468
3468
The two notes give some extra context. Rust's error messages often contain this
3469
3469
kind of extra information when the error is complex. Rust is telling us two
@@ -3762,7 +3762,7 @@ value that must persist as long as any of several referrers, read on.
3762
3762
3763
3763
## Rc and Arc
3764
3764
3765
- Sometimes, you need a variable that is referenced from multiple places
3765
+ Sometimes you need a variable that is referenced from multiple places
3766
3766
(immutably!), lasting as long as any of those places, and disappearing when it
3767
3767
is no longer referenced. For instance, in a graph-like data structure, a node
3768
3768
might be referenced from all of its neighbors. In this case, it is not possible
@@ -3858,7 +3858,7 @@ match x {
3858
3858
```
3859
3859
3860
3860
If you're matching on an enum which has variants, you can use ` .. ` to
3861
- ignore the value in the variant:
3861
+ ignore the value and type in the variant:
3862
3862
3863
3863
``` {rust}
3864
3864
enum OptionalInt {
You can’t perform that action at this time.
0 commit comments