mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
Fix missing semicolon in redundant_as_str docstring example
This commit is contained in:
parent
1c9f3bef8b
commit
01056c5aae
@ -3617,14 +3617,14 @@ declare_clippy_lint! {
|
||||
/// ```rust
|
||||
/// # #![allow(unused)]
|
||||
/// let owned_string = "This is a string".to_owned();
|
||||
/// owned_string.as_str().as_bytes()
|
||||
/// owned_string.as_str().as_bytes();
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
/// # #![allow(unused)]
|
||||
/// let owned_string = "This is a string".to_owned();
|
||||
/// owned_string.as_bytes()
|
||||
/// owned_string.as_bytes();
|
||||
/// ```
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub REDUNDANT_AS_STR,
|
||||
|
Loading…
Reference in New Issue
Block a user