Skip to content

Commit 8477b7f

Browse files
committed
fix doctest
1 parent f99057a commit 8477b7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/loops/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ declare_clippy_lint! {
7373
/// ```
7474
/// Use instead:
7575
/// ```rust
76+
/// let mut arr: [u8; 4] = [1, 2, 3, 4];
7677
/// arr.copy_within(2..4, 0);
7778
/// ```
7879
#[clippy::version = "1.60.0"]

0 commit comments

Comments
 (0)