]> git.lizzy.rs Git - rust.git/commitdiff
Make mention of `if` more generic
authorCorey Farwell <coreyf@rwell.org>
Tue, 12 May 2015 04:33:22 +0000 (00:33 -0400)
committerCorey Farwell <coreyf@rwell.org>
Tue, 12 May 2015 04:33:22 +0000 (00:33 -0400)
`if` can be a statement or also an expression.

src/doc/trpl/primitive-types.md

index bb2bf028700d2cd7d0f9025518687cb8259b3327..22483816769c3a47b67b98144917f12ac396b336 100644 (file)
@@ -15,7 +15,7 @@ let x = true;
 let y: bool = false;
 ```
 
-A common use of booleans is in [`if` statements][if].
+A common use of booleans is in [`if` conditionals][if].
 
 [if]: if.html