This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use std::collections::{BTreeMap, BTreeSet};
1111
1212declare_clippy_lint ! {
1313 /// ### 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 :
1515 /// one from a trait, another not from trait.
1616 ///
1717 /// ### Why is this bad?
@@ -100,7 +100,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
100100 cx,
101101 SAME_NAME_METHOD ,
102102 * 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" ,
104104 |diag| {
105105 diag. span_note (
106106 trait_method_span,
@@ -139,7 +139,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
139139 cx,
140140 SAME_NAME_METHOD ,
141141 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" ,
143143 |diag| {
144144 // TODO should we `span_note` on every trait?
145145 // iterate on trait_spans?
Original file line number Diff line number Diff line change 1- error: method's name is same to an existing method in a trait
1+ error: method's name is the same as an existing method in a trait
22 --> $DIR/same_name_method.rs:20:13
33 |
44LL | fn foo() {}
@@ -11,7 +11,7 @@ note: existing `foo` defined here
1111LL | fn foo() {}
1212 | ^^^^^^^^^^^
1313
14- error: method's name is same to an existing method in a trait
14+ error: method's name is the same as an existing method in a trait
1515 --> $DIR/same_name_method.rs:44:13
1616 |
1717LL | fn foo() {}
@@ -23,7 +23,7 @@ note: existing `foo` defined here
2323LL | fn foo() {}
2424 | ^^^^^^^^^^^
2525
26- error: method's name is same to an existing method in a trait
26+ error: method's name is the same as an existing method in a trait
2727 --> $DIR/same_name_method.rs:58:13
2828 |
2929LL | fn foo() {}
@@ -35,7 +35,7 @@ note: existing `foo` defined here
3535LL | impl T1 for S {}
3636 | ^^^^^^^^^^^^^^^^
3737
38- error: method's name is same to an existing method in a trait
38+ error: method's name is the same as an existing method in a trait
3939 --> $DIR/same_name_method.rs:70:13
4040 |
4141LL | fn foo() {}
@@ -47,7 +47,7 @@ note: existing `foo` defined here
4747LL | impl T1 for S {}
4848 | ^^^^^^^^^^^^^^^^
4949
50- error: method's name is same to an existing method in a trait
50+ error: method's name is the same as an existing method in a trait
5151 --> $DIR/same_name_method.rs:34:13
5252 |
5353LL | fn clone() {}
You can’t perform that action at this time.
0 commit comments