Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed May 29, 2018
1 parent 2b2eff1 commit 59b03b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/method/suggest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/span/issue-7575.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 59b03b1

Please sign in to comment.