From 59b03b16b991c6920ccb0f79acc1e5d04ccc2abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Tue, 29 May 2018 14:48:23 -0700 Subject: [PATCH] Fix typo --- src/librustc_typeck/check/method/suggest.rs | 2 +- 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 8213bd217b87f..6031984350b95 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 1061a8d968158..e31134f843b72 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`