diff options
| author | klensy <klensy@users.noreply.github.com> | 2021-04-19 15:57:08 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2021-04-19 15:57:08 +0300 |
| commit | f43ee8ebf696eec5a8a844629e4f7e910f9f0afd (patch) | |
| tree | bf829ad19f0402dd8c1148d5df4d6c1edce87923 /compiler/rustc_ast/src | |
| parent | 62652865b6029b4776a7c03efa13a37b15c9b953 (diff) | |
| download | rust-f43ee8ebf696eec5a8a844629e4f7e910f9f0afd.tar.gz rust-f43ee8ebf696eec5a8a844629e4f7e910f9f0afd.zip | |
fix few typos
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_ast/src/tokenstream.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index da9accd1839..171f750234f 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -1345,7 +1345,7 @@ pub enum ExprKind { Field(P<Expr>, Ident), /// An indexing operation (e.g., `foo[2]`). Index(P<Expr>, P<Expr>), - /// A range (e.g., `1..2`, `1..`, `..2`, `1..=2`, `..=2`; and `..` in destructuring assingment). + /// A range (e.g., `1..2`, `1..`, `..2`, `1..=2`, `..=2`; and `..` in destructuring assignment). Range(Option<P<Expr>>, Option<P<Expr>>, RangeLimits), /// An underscore, used in destructuring assignment to ignore a value. Underscore, diff --git a/compiler/rustc_ast/src/tokenstream.rs b/compiler/rustc_ast/src/tokenstream.rs index 8318b242cae..2d463a4588c 100644 --- a/compiler/rustc_ast/src/tokenstream.rs +++ b/compiler/rustc_ast/src/tokenstream.rs @@ -301,7 +301,7 @@ impl AttrAnnotatedTokenStream { /// tokens. /// /// For example, `#[cfg(FALSE)] struct Foo {}` would -/// have an `attrs` field contaiing the `#[cfg(FALSE)]` attr, +/// have an `attrs` field containing the `#[cfg(FALSE)]` attr, /// and a `tokens` field storing the (unparesd) tokens `struct Foo {}` #[derive(Clone, Debug, Encodable, Decodable)] pub struct AttributesData { |
