Skip to content

Commit 30a3992

Browse files
committed
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
2 parents b690cdb + a1137a8 commit 30a3992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/inherent_to_string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::utils::{
99
};
1010

1111
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`.
1313
///
1414
/// **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.
1515
///
@@ -46,7 +46,7 @@ declare_clippy_lint! {
4646
}
4747

4848
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.
5050
///
5151
/// **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`.
5252
///

0 commit comments

Comments
 (0)