]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in example codes of "matches" lints
authorTakuma YOSHIOKA <tashioka.256@gmail.com>
Sun, 18 Sep 2016 11:17:25 +0000 (20:17 +0900)
committerTakuma YOSHIOKA <tashioka.256@gmail.com>
Sun, 18 Sep 2016 11:17:25 +0000 (20:17 +0900)
Use `=>` for match arms (instead of wrong `->`).

clippy_lints/src/matches.rs

index 55f9e7ec06d8baf6d08447ebe8159d69261db062..a3a4b7155f5b191a7ac0d66e28b51d59a11f8809 100644 (file)
@@ -22,7 +22,7 @@
 /// **Example:**
 /// ```rust
 /// match x {
-///     Some(ref foo) -> bar(foo),
+///     Some(ref foo) => bar(foo),
 ///     _ => ()
 /// }
 /// ```
@@ -43,7 +43,7 @@
 /// **Example:**
 /// ```rust
 /// match x {
-///     Some(ref foo) -> bar(foo),
+///     Some(ref foo) => bar(foo),
 ///     _ => bar(other_ref),
 /// }
 /// ```