Skip to content

Commit 59b03b1

Browse files
committed
Fix typo
1 parent 2b2eff1 commit 59b03b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_typeck/check/method/suggest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
385385
if static_sources.len() == 1 {
386386
if let Some(expr) = rcvr_expr {
387387
err.span_suggestion(expr.span.to(span),
388-
"use associated function syntax intead",
388+
"use associated function syntax instead",
389389
format!("{}::{}",
390390
self.ty_to_string(actual),
391391
item_name));

src/test/ui/span/issue-7575.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ LL | u.f8(42) + u.f9(342) + m.fff(42)
3939
| --^^^
4040
| | |
4141
| | this is an associated function, not a method
42-
| help: use associated function syntax intead: `Myisize::fff`
42+
| help: use associated function syntax instead: `Myisize::fff`
4343
|
4444
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
4545
note: the candidate is defined in an impl for the type `Myisize`

0 commit comments

Comments
 (0)