Fix lint example
This commit is contained in:
parent
750c118b34
commit
0335b8d6a7
@ -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;
|
||||
/// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user