about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHirochika Matsumoto <matsujika@gmail.com>2020-09-21 00:06:25 +0900
committerHirochika Matsumoto <matsujika@gmail.com>2020-11-18 01:28:37 +0900
commit0335b8d6a747672c0a4ff6cb14b12eced3848325 (patch)
treefb020bc4a08341685ed6e798f5be23c5afebe822
parent750c118b347af938383c5bff53040480e0974071 (diff)
downloadrust-0335b8d6a747672c0a4ff6cb14b12eced3848325.tar.gz
rust-0335b8d6a747672c0a4ff6cb14b12eced3848325.zip
Fix lint example
-rw-r--r--clippy_lints/src/unnecessary_wrap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/unnecessary_wrap.rs b/clippy_lints/src/unnecessary_wrap.rs
index 7b586c1df0c..c5d0d510079 100644
--- a/clippy_lints/src/unnecessary_wrap.rs
+++ b/clippy_lints/src/unnecessary_wrap.rs
@@ -22,7 +22,7 @@ declare_clippy_lint! {
     /// **Example:**
     ///
     /// ```rust
-    /// pub fn get_cool_number(a: bool, b: bool) -> Option<i32> {
+    /// fn get_cool_number(a: bool, b: bool) -> Option<i32> {
     ///     if a && b {
     ///         return Some(50);
     ///     }
@@ -35,7 +35,7 @@ declare_clippy_lint! {
     /// ```
     /// Use instead:
     /// ```rust
-    /// pub fn get_cool_number(a: bool, b: bool) -> i32 {
+    /// fn get_cool_number(a: bool, b: bool) -> i32 {
     ///     if a && b {
     ///         return 50;
     ///     }