Skip to content

Commit e233a43

Browse files
committed
auto merge of #13062 : mbrubeck/rust/doc-edit, r=alexcrichton
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?
2 parents 30165e0 + 8da5ed2 commit e233a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ let mut y = ~5; // mutable
13951395
In contrast with
13961396
owned boxes, where the holder of an owned box is the owner of the pointed-to
13971397
memory, references never imply ownership - they are "borrowed".
1398-
A reference can be borrowed to
1398+
You can borrow a reference to
13991399
any object, and the compiler verifies that it cannot outlive the lifetime of
14001400
the object.
14011401

0 commit comments

Comments
 (0)