Skip to content

Commit 9050531

Browse files
committed
Fix doc
1 parent 6367b00 commit 9050531

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ declare_clippy_lint! {
123123
/// Could be written as
124124
/// ```rust
125125
/// # let vec = vec!["string".to_string()];
126-
/// vec.iter().last().cloned();
126+
/// vec.iter().last().clone();
127127
/// ```
128128
#[clippy::version = "1.59.0"]
129129
pub CLONED_LAST,

0 commit comments

Comments
 (0)