Fix link to lifetime elision rules
authorYufan Lou <loganlyf@gmail.com>
Mon, 25 Mar 2019 06:20:41 +0000 (02:20 -0400)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2019 06:20:41 +0000 (02:20 -0400)
src/part06.rs

index 21fe644758fc7813a7a7cae1b53698005bbcb1b2..939fe081f8d601ad09b216bcb0f4990943159b36 100644 (file)
@@ -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)