diff options
| author | Varun Vats <mailvarunvats@gmail.com> | 2016-03-30 21:05:12 -0500 |
|---|---|---|
| committer | Varun Vats <varun.vats@here.com> | 2016-04-05 12:09:55 -0500 |
| commit | d841c157046d4b686a8ffb614db8f9d700d21134 (patch) | |
| tree | c651353b54e1cc6261f06d53922014dcec26884a | |
| parent | 7ded11a58cf2f8037a511a8d340161c59fba9913 (diff) | |
| download | rust-d841c157046d4b686a8ffb614db8f9d700d21134.tar.gz rust-d841c157046d4b686a8ffb614db8f9d700d21134.zip | |
Doc fix: function takes argument by reference.
| -rw-r--r-- | src/doc/book/lifetimes.md | 4 |
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 |
