diff --git a/src/control-flow-basics/if.md b/src/control-flow-basics/if.md index 7f0bcddd..bd1d3e4b 100644 --- a/src/control-flow-basics/if.md +++ b/src/control-flow-basics/if.md @@ -38,8 +38,8 @@ Because `if` is an expression and must have a particular type, both of its branch blocks must have the same type. Show what happens if you add `;` after `"small"` in the second example. -When `if` is used in an expression, the expression must have a `;` to separate -it from the next statement. Remove the `;` before `println!` to see the compiler -error. +An `if` expression should be used in the same way as the other expressions. For +example, when it is used in a `let` statement, the statement must be terminated +with a `;` as well. Remove the `;` before `println!` to see the compiler error. </details>