Home
Press ? for keyboard navigation
❮
Function receiving two and returning one reference
Exercise: lifetime
❯
Exercise: longest string
Implement a function that received 3 strings and returns the longest string
fn longest(a: &str, b: &str, c: &str) -> &str
You will probably need some lifetime annotations.
Index (i)
Table of Contents (t)
Indexed keywords (k)
Chapter TOC (d)
Hide/Show (h)