You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #4627 - kerhong:fix-typo-in-inherent-to-string, r=phansch
Fix typo in inherent_to_string documentation
A simple typo fix in `inherent_to_string` and `inherent_to_string_shadow_display` documentation
changelog: none
Copy file name to clipboardExpand all lines: clippy_lints/src/inherent_to_string.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ use crate::utils::{
9
9
};
10
10
11
11
declare_clippy_lint!{
12
-
/// **What id does:** Checks for the definition of inherent methods with a signature of `to_string(&self) -> String`.
12
+
/// **What it does:** Checks for the definition of inherent methods with a signature of `to_string(&self) -> String`.
13
13
///
14
14
/// **Why is this bad?** This method is also implicitly defined if a type implements the `Display` trait. As the functionality of `Display` is much more versatile, it should be preferred.
15
15
///
@@ -46,7 +46,7 @@ declare_clippy_lint! {
46
46
}
47
47
48
48
declare_clippy_lint!{
49
-
/// **What id does:** Checks for the definition of inherent methods with a signature of `to_string(&self) -> String` and if the type implementing this method also implements the `Display` trait.
49
+
/// **What it does:** Checks for the definition of inherent methods with a signature of `to_string(&self) -> String` and if the type implementing this method also implements the `Display` trait.
50
50
///
51
51
/// **Why is this bad?** This method is also implicitly defined if a type implements the `Display` trait. The less versatile inherent method will then shadow the implementation introduced by `Display`.
0 commit comments