Skip to content

Commit bd33a97

Browse files
committed
Auto merge of #4199 - flip1995:implicit_return_docs, r=flip1995
Fix implicit_return docs Resolves #4197 changelog: none
2 parents f342ea6 + 310c90a commit bd33a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/implicit_return.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ declare_clippy_lint! {
1818
///
1919
/// **Example:**
2020
/// ```rust
21-
/// fn foo(x: usize) {
21+
/// fn foo(x: usize) -> usize {
2222
/// x
2323
/// }
2424
/// ```
2525
/// add return
2626
/// ```rust
27-
/// fn foo(x: usize) {
27+
/// fn foo(x: usize) -> usize {
2828
/// return x;
2929
/// }
3030
/// ```

0 commit comments

Comments
 (0)