Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0335b8d

Browse files
committed
Fix lint example
1 parent 750c118 commit 0335b8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/unnecessary_wrap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// **Example:**
2323
///
2424
/// ```rust
25-
/// pub fn get_cool_number(a: bool, b: bool) -> Option<i32> {
25+
/// fn get_cool_number(a: bool, b: bool) -> Option<i32> {
2626
/// if a && b {
2727
/// return Some(50);
2828
/// }
@@ -35,7 +35,7 @@ declare_clippy_lint! {
3535
/// ```
3636
/// Use instead:
3737
/// ```rust
38-
/// pub fn get_cool_number(a: bool, b: bool) -> i32 {
38+
/// fn get_cool_number(a: bool, b: bool) -> i32 {
3939
/// if a && b {
4040
/// return 50;
4141
/// }

0 commit comments

Comments
 (0)