Skip to content

Commit 782c52a

Browse files
committed
Removed doubled wording.
The guide previously stated: > The compiler will automatically convert a box box point to a reference like &point. This fixes the doubled word `box`, so the statement reads > The compiler will automatically convert a box point to a reference like &point. The code it is referring to is `compute_distance(&on_the_stack, on_the_heap);`, so a single `box` is appropriate.
1 parent 7f777a5 commit 782c52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide-lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ value. We also call this _borrowing_ the local variable
7878
name for the same data.
7979

8080
In the case of `on_the_heap`, however, no explicit action is necessary.
81-
The compiler will automatically convert a box box point to a reference like &point.
81+
The compiler will automatically convert a box point to a reference like &point.
8282
This is another form of borrowing; in this case, the contents of the owned box
8383
are being lent out.
8484

0 commit comments

Comments
 (0)