Skip to content

Commit 0765b04

Browse files
committed
update doc string
1 parent f577bb5 commit 0765b04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/str_to_string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ declare_clippy_lint! {
1616
///
1717
/// ```rust
1818
/// // example code where clippy issues a warning
19-
/// let _ = "str".to_string()
19+
/// let _ = "str".to_string();
2020
/// ```
2121
/// Use instead:
2222
/// ```rust
2323
/// // example code which does not raise clippy warning
24-
/// let _ = "str".to_owned()
24+
/// let _ = "str".to_owned();
2525
/// ```
2626
pub STR_TO_STRING,
2727
restriction,

clippy_lints/src/string_to_string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ declare_clippy_lint! {
1616
/// ```rust
1717
/// // example code where clippy issues a warning
1818
/// let msg = String::from("Hello World");
19-
/// let _ = msg.to_string()
19+
/// let _ = msg.to_string();
2020
/// ```
2121
/// Use instead:
2222
/// ```rust
2323
/// // example code which does not raise clippy warning
2424
/// let msg = String::from("Hello World");
25-
/// let _ = msg.clone()
25+
/// let _ = msg.clone();
2626
/// ```
2727
pub STRING_TO_STRING,
2828
restriction,

0 commit comments

Comments
 (0)