Skip to content

Commit

Permalink
Fix incorrect number of top level token trees in source-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril authored Jan 23, 2021
1 parent d44ddc1 commit 9ff034f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros/syntax/source-analysys.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ would be parsed into the following token trees:
```

Note that this has *no relationship* to the AST the expression would produce; instead of a single
root node, there are *nine* token trees at the root level. For reference, the AST would be:
root node, there are *seven* token trees at the root level. For reference, the AST would be:

```text
┌─────────┐
Expand Down Expand Up @@ -138,4 +138,4 @@ nor is it possible to have incorrectly nested groups in a token tree.
[`rustc_lexer`]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_lexer
[`rustc_parse`]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_parse
[lexer]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_parse/src/lexer
[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree

0 comments on commit 9ff034f

Please sign in to comment.