Skip to content

Commit 12e7aa3

Browse files
committed
Auto merge of rust-lang#16313 - Urhengulas:tidy-syntax-docs, r=lnicola
minor: Remove newline and add dot in syntax docs While reading through the docs I came across these two small typos.
2 parents 598511b + d94f572 commit 12e7aa3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/dev/syntax.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Syntax trees are a semi-transient data structure.
4141
In general, frontend does not keep syntax trees for all files in memory.
4242
Instead, it *lowers* syntax trees to more compact and rigid representation, which is not full-fidelity, but which can be mapped back to a syntax tree if so desired.
4343

44-
4544
### GreenNode
4645

4746
GreenNode is a purely-functional tree with arbitrary arity. Conceptually, it is equivalent to the following run of the mill struct:
@@ -500,7 +499,7 @@ Specifically, `TreeSink` constructs the tree in lockstep with draining the origi
500499
In the process, it records which tokens of the tree correspond to which tokens of the input, by using text ranges to identify syntax tokens.
501500
The end result is that parsing an expanded code yields a syntax tree and a mapping of text-ranges of the tree to original tokens.
502501

503-
To deal with precedence in cases like `$expr * 1`, we use special invisible parenthesis, which are explicitly handled by the parser
502+
To deal with precedence in cases like `$expr * 1`, we use special invisible parenthesis, which are explicitly handled by the parser.
504503

505504
### Whitespace & Comments
506505

0 commit comments

Comments
 (0)