diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2019-06-24 14:33:02 -0400 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2019-06-26 11:05:58 -0500 |
| commit | 36431d5ff651c53957ca367b25b5ea9d59f81332 (patch) | |
| tree | c1b91efe844b00366546d690593ce15265077ea3 /src/doc/rustc-dev-guide | |
| parent | a8b5b2176576b0e9835b6b4117294db7e2c193d2 (diff) | |
| download | rust-36431d5ff651c53957ca367b25b5ea9d59f81332.tar.gz rust-36431d5ff651c53957ca367b25b5ea9d59f81332.zip | |
Update src/borrow_check/region_inference/lifetime_parameters.md
Co-Authored-By: lqd <remy.rakic+github@gmail.com>
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/borrow_check/region_inference/lifetime_parameters.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/borrow_check/region_inference/lifetime_parameters.md b/src/doc/rustc-dev-guide/src/borrow_check/region_inference/lifetime_parameters.md index 10759ee56cd..1a50f45f9fd 100644 --- a/src/doc/rustc-dev-guide/src/borrow_check/region_inference/lifetime_parameters.md +++ b/src/doc/rustc-dev-guide/src/borrow_check/region_inference/lifetime_parameters.md @@ -15,7 +15,7 @@ fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> &'b u32 { This example is intended not to compile, because we are returning `x`, which has type `&'a u32`, but our signature promises that we will -return a `&'b u32` value. But how are lifetimes like `'a` and `'b +return a `&'b u32` value. But how are lifetimes like `'a` and `'b` integrated into region inference, and how this error wind up being detected? |
