diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-05-29 14:48:23 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-05-29 14:48:23 -0700 |
| commit | 59b03b16b991c6920ccb0f79acc1e5d04ccc2abd (patch) | |
| tree | a95fe8c6816b301521a9adcb533f5437841fdc2c | |
| parent | 2b2eff15cdfedce296b68ffefca367346291c85e (diff) | |
| download | rust-59b03b16b991c6920ccb0f79acc1e5d04ccc2abd.tar.gz rust-59b03b16b991c6920ccb0f79acc1e5d04ccc2abd.zip | |
Fix typo
| -rw-r--r-- | src/librustc_typeck/check/method/suggest.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/span/issue-7575.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/check/method/suggest.rs b/src/librustc_typeck/check/method/suggest.rs index 8213bd217b8..6031984350b 100644 --- a/src/librustc_typeck/check/method/suggest.rs +++ b/src/librustc_typeck/check/method/suggest.rs @@ -385,7 +385,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> { if static_sources.len() == 1 { if let Some(expr) = rcvr_expr { err.span_suggestion(expr.span.to(span), - "use associated function syntax intead", + "use associated function syntax instead", format!("{}::{}", self.ty_to_string(actual), item_name)); diff --git a/src/test/ui/span/issue-7575.stderr b/src/test/ui/span/issue-7575.stderr index 1061a8d9681..e31134f843b 100644 --- a/src/test/ui/span/issue-7575.stderr +++ b/src/test/ui/span/issue-7575.stderr @@ -39,7 +39,7 @@ LL | u.f8(42) + u.f9(342) + m.fff(42) | --^^^ | | | | | this is an associated function, not a method - | help: use associated function syntax intead: `Myisize::fff` + | help: use associated function syntax instead: `Myisize::fff` | = note: found the following associated functions; to be used as methods, functions must have a `self` parameter note: the candidate is defined in an impl for the type `Myisize` |
