From ac72c4f6a467b9f1a3878868d0cd93e38aeae353 Mon Sep 17 00:00:00 2001 From: Peter Kehl Date: Fri, 19 Apr 2019 21:24:22 -0700 Subject: [PATCH] For https://github.com/rust-lang/rust-by-example/issues/1179 --- src/scope/lifetime/lifetime_bounds.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scope/lifetime/lifetime_bounds.md b/src/scope/lifetime/lifetime_bounds.md index e3d0a438ad..8df5f96125 100644 --- a/src/scope/lifetime/lifetime_bounds.md +++ b/src/scope/lifetime/lifetime_bounds.md @@ -8,7 +8,7 @@ but `+` is the same. Note how the following read: 2. `T: Trait + 'a`: Type `T` must implement trait `Trait` and *all* references in `T` must outlive `'a`. -The example below shows the above syntax in action: +The example below shows the above syntax in action used after keyword `where`: ```rust,editable use std::fmt::Debug; // Trait to bound with. @@ -50,4 +50,4 @@ fn main() { [generics]: generics.html [bounds]: generics/bounds.html -[multibounds]: generics/multi_bounds.html \ No newline at end of file +[multibounds]: generics/multi_bounds.html