diff --git a/src/doc/tarpl/lifetimes.md b/src/doc/tarpl/lifetimes.md index 5d7b305982f..37d03573361 100644 --- a/src/doc/tarpl/lifetimes.md +++ b/src/doc/tarpl/lifetimes.md @@ -137,7 +137,7 @@ fn main() { // need to last for the whole scope x is valid for. The return // of as_str must find a str somewhere *before* this function // call. Obviously not happening. - println!("{}", as_str::<'d>(&'d temp)); + println!("{}", as_str::<'d>(&'d x)); } } }