The document page: https://doc.rust-lang.org/book/lifetimes.html For example: fn <'a>a_or_b(a : &'a str, b : &'a str) -> &'a str