Skip to content

Commit b93438f

Browse files
committed
fix incorrect name
1 parent 0d37e78 commit b93438f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/tarpl/lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn main() {
137137
// need to last for the whole scope x is valid for. The return
138138
// of as_str must find a str somewhere *before* this function
139139
// call. Obviously not happening.
140-
println!("{}", as_str::<'d>(&'d temp));
140+
println!("{}", as_str::<'d>(&'d x));
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)