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

Commit 01056c5

Browse files
committed
Fix missing semicolon in redundant_as_str docstring example
1 parent 1c9f3be commit 01056c5

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,14 +3617,14 @@ declare_clippy_lint! {
36173617
/// ```rust
36183618
/// # #![allow(unused)]
36193619
/// let owned_string = "This is a string".to_owned();
3620-
/// owned_string.as_str().as_bytes()
3620+
/// owned_string.as_str().as_bytes();
36213621
/// ```
36223622
///
36233623
/// Use instead:
36243624
/// ```rust
36253625
/// # #![allow(unused)]
36263626
/// let owned_string = "This is a string".to_owned();
3627-
/// owned_string.as_bytes()
3627+
/// owned_string.as_bytes();
36283628
/// ```
36293629
#[clippy::version = "1.74.0"]
36303630
pub REDUNDANT_AS_STR,

0 commit comments

Comments
 (0)