2 ms·
What I meant was the fact that you can omit the "return" keyword: fn foo(x: i32) -> i32 { x * 2 }
by _bxg1 7y ago
What I meant was the fact that you can omit the "return" keyword:
fn foo(x: i32) -> i32 { x * 2 }
- steveklabnik 7y agoRight, but only as the last expression in a block, which is different than what "implicit returns" implies.