projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
88cd95d
)
Fix link to lifetime elision rules
author
Yufan Lou
<loganlyf@gmail.com>
Mon, 25 Mar 2019 06:20:41 +0000
(
02:20
-0400)
committer
GitHub
<noreply@github.com>
Mon, 25 Mar 2019 06:20:41 +0000
(
02:20
-0400)
src/part06.rs
patch
|
blob
|
history
diff --git
a/src/part06.rs
b/src/part06.rs
index 21fe644758fc7813a7a7cae1b53698005bbcb1b2..939fe081f8d601ad09b216bcb0f4990943159b36 100644
(file)
--- a/
src/part06.rs
+++ b/
src/part06.rs
@@
-162,7
+162,7
@@
fn rust_foo(mut v: Vec<i32>) -> i32 {
//@ application code. Most of the time, we don't have to explicitly add lifetimes to function
//@ types. This is thanks to *lifetime elision*, where Rust will automatically insert lifetimes we
//@ did not specify, following some simple, well-documented
//@ application code. Most of the time, we don't have to explicitly add lifetimes to function
//@ types. This is thanks to *lifetime elision*, where Rust will automatically insert lifetimes we
//@ did not specify, following some simple, well-documented
-//@ [rules](https://doc.rust-
lang.org/stable/book/lifetimes.html#lifetime-elision).
+//@ [rules](https://doc.rust-lang.org/stable/book/lifetimes.html#lifetime-elision).
//@ [index](main.html) | [previous](part05.html) | [raw source](workspace/src/part06.rs) |
//@ [next](part07.html)
//@ [index](main.html) | [previous](part05.html) | [raw source](workspace/src/part06.rs) |
//@ [next](part07.html)