]> git.lizzy.rs Git - rust.git/commitdiff
Removed doubled wording.
authorZach Pomerantz <zmp@umich.edu>
Tue, 10 Jun 2014 23:53:04 +0000 (16:53 -0700)
committerZach Pomerantz <zmp@umich.edu>
Tue, 10 Jun 2014 23:53:04 +0000 (16:53 -0700)
The guide previously stated:

> The compiler will automatically convert a box box point to a reference like &amp;point.

This fixes the doubled word `box`, so the statement reads

> The compiler will automatically convert a box point to a reference like &amp;point.

The code it is referring to is `compute_distance(&on_the_stack, on_the_heap);`, so a single `box` is appropriate.

src/doc/guide-lifetimes.md

index 65f37031674c7caf637b6c067c5179a7fe4af95c..55bea362e9bf35134aafee1851838274ad68f7b4 100644 (file)
@@ -78,7 +78,7 @@ value. We also call this _borrowing_ the local variable
 name for the same data.
 
 In the case of `on_the_heap`, however, no explicit action is necessary. 
-The compiler will automatically convert a box box point to a reference like &point. 
+The compiler will automatically convert a box point to a reference like &point. 
 This is another form of borrowing; in this case, the contents of the owned box 
 are being lent out.