From c2c99463720e758d5aa0bdcea19dc5b3dd67292c Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Mon, 9 Jun 2014 00:00:52 -0400 Subject: Fix more misspelled comments and strings. --- src/libsyntax/ext/base.rs | 2 +- src/libsyntax/ext/deriving/cmp/ord.rs | 2 +- src/libsyntax/ext/deriving/generic/mod.rs | 2 +- src/libsyntax/ext/tt/transcribe.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index e81421cff04..b656b0c06a0 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -195,7 +195,7 @@ impl DummyResult { /// Create a default MacResult that can only be an expression. /// /// Use this for macros that must expand to an expression, so even - /// if an error is encountered internally, the user will recieve + /// if an error is encountered internally, the user will receive /// an error that they also used it in the wrong place. pub fn expr(sp: Span) -> Box { box DummyResult { expr_only: true, span: sp } as Box diff --git a/src/libsyntax/ext/deriving/cmp/ord.rs b/src/libsyntax/ext/deriving/cmp/ord.rs index abe504b8885..24cc286b190 100644 --- a/src/libsyntax/ext/deriving/cmp/ord.rs +++ b/src/libsyntax/ext/deriving/cmp/ord.rs @@ -77,7 +77,7 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt, span: Span, substr: &Substru ``` The optimiser should remove the redundancy. We explicitly - get use the binops to avoid auto-deref derefencing too many + get use the binops to avoid auto-deref dereferencing too many layers of pointers, if the type includes pointers. */ let other_f = match other_fs { diff --git a/src/libsyntax/ext/deriving/generic/mod.rs b/src/libsyntax/ext/deriving/generic/mod.rs index 228f5f02bee..bf0da94e3e3 100644 --- a/src/libsyntax/ext/deriving/generic/mod.rs +++ b/src/libsyntax/ext/deriving/generic/mod.rs @@ -723,7 +723,7 @@ impl<'a> MethodDef<'a> { &Struct(fields)); // make a series of nested matches, to destructure the - // structs. This is actually right-to-left, but it shoudn't + // structs. This is actually right-to-left, but it shouldn't // matter. for (&arg_expr, &pat) in self_args.iter().zip(patterns.iter()) { body = cx.expr_match(trait_.span, arg_expr, diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index 748ba6b19da..c0c066fe466 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -58,7 +58,7 @@ pub fn new_tt_reader<'a>(sp_diag: &'a SpanHandler, dotdotdoted: false, sep: None, }), - interpolations: match interp { /* just a convienience */ + interpolations: match interp { /* just a convenience */ None => HashMap::new(), Some(x) => x, }, -- cgit 1.4.1-3-g733a5