diff options
| author | Zach Pomerantz <zmp@umich.edu> | 2014-06-10 16:53:04 -0700 |
|---|---|---|
| committer | Zach Pomerantz <zmp@umich.edu> | 2014-06-10 16:53:04 -0700 |
| commit | 782c52a9240e7657fa813dcb141f5c5f4b308a25 (patch) | |
| tree | b807723ed09d2a87bec1a0c2e7406c0c4711a985 | |
| parent | 7f777a5ba49785a74e5365e9897ddf4c02ea8519 (diff) | |
| download | rust-782c52a9240e7657fa813dcb141f5c5f4b308a25.tar.gz rust-782c52a9240e7657fa813dcb141f5c5f4b308a25.zip | |
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.
| -rw-r--r-- | src/doc/guide-lifetimes.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-lifetimes.md b/src/doc/guide-lifetimes.md index 65f37031674..55bea362e9b 100644 --- a/src/doc/guide-lifetimes.md +++ b/src/doc/guide-lifetimes.md @@ -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. |
