diff --git a/src/unbounded-lifetimes.md b/src/unbounded-lifetimes.md index 89dcc60..9ca2a2f 100644 --- a/src/unbounded-lifetimes.md +++ b/src/unbounded-lifetimes.md @@ -17,7 +17,8 @@ boundaries. Given a function, any output lifetimes that don't derive from inputs are unbounded. For instance: -```rust + +```rust,no_run fn get_str<'a>(s: *const String) -> &'a str { unsafe { &*s } }