From 558c427cd3baac76d98c4c73cea15c4073ef5e93 Mon Sep 17 00:00:00 2001 From: Liam Monahan Date: Sun, 22 Mar 2015 23:54:59 -0400 Subject: [PATCH 1/2] Fix a typo in the Rust Book ownership page. --- src/doc/trpl/ownership.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/trpl/ownership.md b/src/doc/trpl/ownership.md index 6aced23ede08..9a2eb458bc63 100644 --- a/src/doc/trpl/ownership.md +++ b/src/doc/trpl/ownership.md @@ -513,8 +513,8 @@ Otherwise, it is an error to elide an output lifetime. ### Examples -Here are some examples of functions with elided lifetimes, and the version of -what the elided lifetimes are expand to: +Here are some examples of functions with elided lifetimes, along with versions +of what the elided lifetimes expand to: ```{rust,ignore} fn print(s: &str); // elided From 37dc801fe630214e7b27899eb89626c8611ce5ff Mon Sep 17 00:00:00 2001 From: Liam Monahan Date: Mon, 23 Mar 2015 21:19:54 -0400 Subject: [PATCH 2/2] Improve the wording of the example section description on the ownership page to make it more clear. --- src/doc/trpl/ownership.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/trpl/ownership.md b/src/doc/trpl/ownership.md index 9a2eb458bc63..b851f19d22dc 100644 --- a/src/doc/trpl/ownership.md +++ b/src/doc/trpl/ownership.md @@ -513,8 +513,8 @@ Otherwise, it is an error to elide an output lifetime. ### Examples -Here are some examples of functions with elided lifetimes, along with versions -of what the elided lifetimes expand to: +Here are some examples of functions with elided lifetimes. We've paired each +example of an elided lifetime with its expanded form. ```{rust,ignore} fn print(s: &str); // elided