Skip to content

Commit d841c15

Browse files
Varun VatsVarun Vats
Varun Vats
authored and
Varun Vats
committed
Doc fix: function takes argument by reference.
1 parent 7ded11a commit d841c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/lifetimes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ To fix this, we have to make sure that step four never happens after step
5656
three. The ownership system in Rust does this through a concept called
5757
lifetimes, which describe the scope that a reference is valid for.
5858

59-
When we have a function that takes a reference by argument, we can be implicit
60-
or explicit about the lifetime of the reference:
59+
When we have a function that takes an argument by reference, we can be
60+
implicit or explicit about the lifetime of the reference:
6161

6262
```rust
6363
// implicit

0 commit comments

Comments
 (0)