about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-01-29 17:08:04 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-01-29 17:08:11 -0600
commit576294237b10fff22bc462398ff7d06fffa05bd0 (patch)
tree7ea3410fbca584d9e6726b95b00b137994c0b784 /src/libsyntax
parentca0c0805693b08566cf118b676533be776005494 (diff)
downloadrust-576294237b10fff22bc462398ff7d06fffa05bd0.tar.gz
rust-576294237b10fff22bc462398ff7d06fffa05bd0.zip
fix typos
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/tt/quoted.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs
index 61dc3d32f20..c55dfaba8f6 100644
--- a/src/libsyntax/ext/tt/quoted.rs
+++ b/src/libsyntax/ext/tt/quoted.rs
@@ -37,7 +37,7 @@ impl Delimited {
         token::CloseDelim(self.delim)
     }
 
-    /// Return a `self::TokenTree` witha a `Span` corresponding to the opening delimiter.
+    /// Return a `self::TokenTree` with a `Span` corresponding to the opening delimiter.
     pub fn open_tt(&self, span: Span) -> TokenTree {
         let open_span = if span == DUMMY_SP {
             DUMMY_SP
@@ -47,7 +47,7 @@ impl Delimited {
         TokenTree::Token(open_span, self.open_token())
     }
 
-    /// Return a `self::TokenTree` witha a `Span` corresponding to the closing delimiter.
+    /// Return a `self::TokenTree` with a `Span` corresponding to the closing delimiter.
     pub fn close_tt(&self, span: Span) -> TokenTree {
         let close_span = if span == DUMMY_SP {
             DUMMY_SP
@@ -232,7 +232,7 @@ pub fn parse(
 ///
 /// # Parameters
 ///
-/// - `tree`: the tree wish to convert.
+/// - `tree`: the tree we wish to convert.
 /// - `trees`: an iterator over trees. We may need to read more tokens from it in order to finish
 ///   converting `tree`
 /// - `expect_matchers`: same as for `parse` (see above).
@@ -327,7 +327,7 @@ where
 /// separator, and `*` is the Kleene operator. This function is specifically concerned with parsing
 /// the last two tokens of such a pattern: namely, the optional separator and the Kleene operator
 /// itself. Note that here we are parsing the _macro_ itself, rather than trying to match some
-/// stream of tokens in an invokation of a macro.
+/// stream of tokens in an invocation of a macro.
 ///
 /// This function will take some input iterator `input` corresponding to `span` and a parsing
 /// session `sess`. If the next one (or possibly two) tokens in `input` correspond to a Kleene