]> git.lizzy.rs Git - rust.git/commitdiff
Docs: Change "statements" to "expressions" on `match`
authorTang Chenglong <ideami@outlook.com>
Wed, 23 Mar 2016 04:03:41 +0000 (12:03 +0800)
committerTang Chenglong <ideami@outlook.com>
Wed, 23 Mar 2016 04:03:41 +0000 (12:03 +0800)
I apt to use `expressions` over `statements`, because `match` is a expression in essence, though it can become a statement when followed a semicolon.

src/doc/book/patterns.md

index 7325d448962cf229a9aac6443895466d0ce89d24..7ecfdcfcc1e025d78fea05f938405de33fb1d201 100644 (file)
@@ -1,7 +1,7 @@
 % Patterns
 
 Patterns are quite common in Rust. We use them in [variable
-bindings][bindings], [match statements][match], and other places, too. Let’s go
+bindings][bindings], [match expressions][match], and other places, too. Let’s go
 on a whirlwind tour of all of the things patterns can do!
 
 [bindings]: variable-bindings.html