We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7faf86 commit 645f3d7Copy full SHA for 645f3d7
courses/rust_essentials/040_control_flow_basics/06_functions.rst
@@ -43,7 +43,7 @@ Return Values (Expression vs Statement)
43
- No :rust:`->` syntax means the function returns the unit type :rust:`()`
44
- Functions can return in two ways:
45
- **Statement:** ends in a semicolon (:rust:`;`), returns :rust:`()`
46
- - As an expression: does **not** end in a semicolon
+ - **Expression:** does **not** end in a semicolon
47
- Last expression evaluated in the body is returned
48
49
.. code:: rust
0 commit comments