File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use std::collections::{BTreeMap, BTreeSet};
11
11
12
12
declare_clippy_lint ! {
13
13
/// ### What it does
14
- /// It lints if a struct has two method with same time :
14
+ /// It lints if a struct has two methods with the same name :
15
15
/// one from a trait, another not from trait.
16
16
///
17
17
/// ### Why is this bad?
@@ -100,7 +100,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
100
100
cx,
101
101
SAME_NAME_METHOD ,
102
102
* impl_span,
103
- "method's name is same to an existing method in a trait" ,
103
+ "method's name is the same as an existing method in a trait" ,
104
104
|diag| {
105
105
diag. span_note (
106
106
trait_method_span,
@@ -139,7 +139,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
139
139
cx,
140
140
SAME_NAME_METHOD ,
141
141
impl_span,
142
- "method's name is same to an existing method in a trait" ,
142
+ "method's name is the same as an existing method in a trait" ,
143
143
|diag| {
144
144
// TODO should we `span_note` on every trait?
145
145
// iterate on trait_spans?
You can’t perform that action at this time.
0 commit comments