1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-08 02:26:14 +02:00
comprehensive-rust/src/control-flow.md

7 lines
260 B
Markdown
Raw Normal View History

2022-12-21 16:36:30 +01:00
# 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.