12 ms·
Here's the citation: https://doc.rust-lang.org/reference/items/functions.html https://doc.rust-lang.org/reference/items/functions.html > A function consists of
by steveklabnik 8y ago
Here's the citation: https://doc.rust-lang.org/reference/items/functions.html https://doc.rust-lang.org/reference/items/functions.html
> A function consists of a block, along with a name and a set of parameters.
https://doc.rust-lang.org/reference/expressions/block-expr.html https://doc.rust-lang.org/reference/expressions/block-expr.h...
> Blocks are always value expressions and evaluate the last expression in value expression context.