Skip to content

Commit

Permalink
auto merge of #13062 : mbrubeck/rust/doc-edit, r=alexcrichton
Browse files Browse the repository at this point in the history
This is a very minor edit to the tutorial section on references.

Reading this section for the first time, I stumbled on the phrase "a reference can be borrowed to any object."  Its meaning was clear enough once I got it, but I had to re-read it a couple of times to parse it correctly.  Something about the passive voice plus the way "reference to any object" is split up by the verb phrase.  How about this instead?
  • Loading branch information
bors committed Mar 22, 2014
2 parents 30165e0 + 8da5ed2 commit e233a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ let mut y = ~5; // mutable
In contrast with
owned boxes, where the holder of an owned box is the owner of the pointed-to
memory, references never imply ownership - they are "borrowed".
A reference can be borrowed to
You can borrow a reference to
any object, and the compiler verifies that it cannot outlive the lifetime of
the object.

Expand Down

0 comments on commit e233a43

Please sign in to comment.