Skip to content

Commit a7cdac3

Browse files
authored
Merge pull request #1223 from blldce/blldce-patch-1
Clarify wording for references.
2 parents d85c792 + e2ac66c commit a7cdac3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types/pointer.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ They can be moved or copied, stored into data structs, and returned from functio
1111
1212
### Shared references (`&`)
1313

14-
These point to memory _owned by some other value_.
15-
When a shared reference to a value is created it prevents direct mutation of the value.
14+
Shared references point to memory which is owned by some other value.
15+
When a shared reference to a value is created, it prevents direct mutation of the value.
1616
[Interior mutability] provides an exception for this in certain circumstances.
1717
As the name suggests, any number of shared references to a value may exist.
1818
A shared reference type is written `&type`, or `&'a type` when you need to specify an explicit lifetime.
@@ -22,7 +22,7 @@ Releasing a reference has no effect on the value it points to, but referencing o
2222

2323
### Mutable references (`&mut`)
2424

25-
These also point to memory owned by some other value.
25+
Mutable references point to memory which is owned by some other value.
2626
A mutable reference type is written `&mut type` or `&'a mut type`.
2727
A mutable reference (that hasn't been borrowed) is the only way to access the value it points to, so is not `Copy`.
2828

0 commit comments

Comments
 (0)