Skip to content

Commit 0fec059

Browse files
authored
Merge pull request #15245 from ortem/doc-fix
Some documentation fixes
2 parents 9bb4fc6 + 021763a commit 0fec059

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Syntax/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ pieces of syntax that aren't really relevant to the semantics of the program,
260260
such as whitespace and comments. These are modeled as collections and, with the
261261
exception of comments, are sort of "run-length" encoded. For example, a sequence
262262
of four spaces is represented by `{ Kind: TriviaKind::Space, Count: 4 }`, not
263-
the literal text `" "`.
263+
the literal text `"    "`.
264264

265265
Some examples of the "atoms" of `Trivia`:
266266

@@ -505,15 +505,15 @@ following fields:
505505

506506
| Key | Type | Description |
507507
| --- | ---- | ----------- |
508-
| `kind` | `String` | The `SyntaxKind` of this child. This must have a corresponding `Node` with that kind. |
508+
| `kind` | `String` | The `SyntaxKind` of this child. This must have a corresponding `Node` with that kind (or corresponding `Token` in both `include/swift/Syntax/TokenKinds.def` and `SYNTAX_TOKENS`). |
509509
| `is_optional` | `Bool?` | Whether this child is required in a fully-formed object, or if it is allowed to remain `missing`. Defaults to `false` if not present.
510510
| `token_choices` | `[String]?` | A list of `Token`s which are considered "valid" values for `Token` children. |
511511
| `text_choices` | `[String]?` | A list of valid textual values for tokens. If this is not provided, any textual value is accepted for tokens like `IdentifierToken`. |
512512

513513
#### Tokens
514514

515515
A `Token` represents one of the `tok::` enums in
516-
`include/Syntax/TokenKinds.def`. `Token.py` has a top-level array of token
516+
`include/swift/Syntax/TokenKinds.def`. `Token.py` has a top-level array of token
517517
declarations. The `Token` class has the following fields.
518518

519519
| Key | Type | Description |

0 commit comments

Comments
 (0)