Skip to content

Glossary: Rust Basics

Expression

Also written: expressions

Code that produces a value, like `1650 * 2` or an `if` with an `else`. Adding a semicolon turns it into a statement that throws the value away.

Where the book teaches it

Related terms

StatementBlock