about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVarun Vats <mailvarunvats@gmail.com>2016-03-30 21:05:12 -0500
committerVarun Vats <varun.vats@here.com>2016-04-05 12:09:55 -0500
commitd841c157046d4b686a8ffb614db8f9d700d21134 (patch)
treec651353b54e1cc6261f06d53922014dcec26884a
parent7ded11a58cf2f8037a511a8d340161c59fba9913 (diff)
downloadrust-d841c157046d4b686a8ffb614db8f9d700d21134.tar.gz
rust-d841c157046d4b686a8ffb614db8f9d700d21134.zip
Doc fix: function takes argument by reference.
-rw-r--r--src/doc/book/lifetimes.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/lifetimes.md b/src/doc/book/lifetimes.md
index e7a4045d9b2..695b1614fb7 100644
--- a/src/doc/book/lifetimes.md
+++ b/src/doc/book/lifetimes.md
@@ -56,8 +56,8 @@ To fix this, we have to make sure that step four never happens after step
 three. The ownership system in Rust does this through a concept called
 lifetimes, which describe the scope that a reference is valid for.
 
-When we have a function that takes a reference by argument, we can be implicit
-or explicit about the lifetime of the reference:
+When we have a function that takes an argument by reference, we can be
+implicit or explicit about the lifetime of the reference:
 
 ```rust
 // implicit