1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-12 04:17:31 +02:00
comprehensive-rust/src/control-flow.md
2022-12-21 16:38:28 +01:00

260 B

Control Flow

As we have seen, if is an expression in Rust. It is used to conditionally evaluate one of two blocks, but the blocks can have a value which then becomes the value of the if expression. Other control flow expressions work similarly in Rust.