Skip to content

Commit a84a6cc

Browse files
committed
Fixed typos
2 parents 2ce0206 + d98bd39 commit a84a6cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/ui/parser/expr-rarrow-call.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: `->` used for field access or method call
44
LL | named->foo;
55
| ^^
66
|
7-
= help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
7+
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
88
help: try using `.` instead
99
|
1010
LL - named->foo;
@@ -17,7 +17,7 @@ error: `->` used for field access or method call
1717
LL | unnamed->0;
1818
| ^^
1919
|
20-
= help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
20+
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
2121
help: try using `.` instead
2222
|
2323
LL - unnamed->0;
@@ -30,7 +30,7 @@ error: `->` used for field access or method call
3030
LL | t->0;
3131
| ^^
3232
|
33-
= help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
33+
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
3434
help: try using `.` instead
3535
|
3636
LL - t->0;
@@ -43,7 +43,7 @@ error: `->` used for field access or method call
4343
LL | t->1;
4444
| ^^
4545
|
46-
= help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
46+
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
4747
help: try using `.` instead
4848
|
4949
LL - t->1;
@@ -56,7 +56,7 @@ error: `->` used for field access or method call
5656
LL | foo->clone();
5757
| ^^
5858
|
59-
= help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
59+
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
6060
help: try using `.` instead
6161
|
6262
LL - foo->clone();

tests/ui/parser/issues/issue-118530-ice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ error: `->` used for field access or method call
3939
LL | attr::fn bar() -> String {
4040
| ^^
4141
|
42-
= help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
42+
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
4343
help: try using `.` instead
4444
|
4545
LL - attr::fn bar() -> String {

0 commit comments

Comments
 (0)