File tree 2 files changed +8
-8
lines changed
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};
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?
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
2
2
--> $DIR/same_name_method.rs:20:13
3
3
|
4
4
LL | fn foo() {}
@@ -11,7 +11,7 @@ note: existing `foo` defined here
11
11
LL | fn foo() {}
12
12
| ^^^^^^^^^^^
13
13
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
15
15
--> $DIR/same_name_method.rs:44:13
16
16
|
17
17
LL | fn foo() {}
@@ -23,7 +23,7 @@ note: existing `foo` defined here
23
23
LL | fn foo() {}
24
24
| ^^^^^^^^^^^
25
25
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
27
27
--> $DIR/same_name_method.rs:58:13
28
28
|
29
29
LL | fn foo() {}
@@ -35,7 +35,7 @@ note: existing `foo` defined here
35
35
LL | impl T1 for S {}
36
36
| ^^^^^^^^^^^^^^^^
37
37
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
39
39
--> $DIR/same_name_method.rs:70:13
40
40
|
41
41
LL | fn foo() {}
@@ -47,7 +47,7 @@ note: existing `foo` defined here
47
47
LL | impl T1 for S {}
48
48
| ^^^^^^^^^^^^^^^^
49
49
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
51
51
--> $DIR/same_name_method.rs:34:13
52
52
|
53
53
LL | fn clone() {}
You can’t perform that action at this time.
0 commit comments