Skip to content

Commit 4d64059

Browse files
authored
Merge pull request #15150 from NevinBR/patch-1
Fixed typos and grammar in lib/Syntax/README.md
2 parents 60ccf00 + ae3f142 commit 4d64059

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Syntax/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ representation of source, and facilities for *structured editing*.
1111
What is structured editing? It's an editing strategy that is keenly aware of the
1212
*structure* of source code, not necessarily its *representation* (i.e.
1313
characters or bytes). This can be achieved at different granularities: replacing
14-
an identifier, changing a call to global function to a method call, or indenting
14+
an identifier, changing a global function call to a method call, or indenting
1515
and formatting an entire source file based on declarative rules. These kinds of
1616
diverse operations are critical to the Swift Migrator, which is the immediate
1717
client for this library, now developed in the open. Along with that, the library
@@ -163,7 +163,7 @@ struct YourStruct {}
163163
At any point in the building process, you can call `build()` and get a
164164
reasonably formed Syntax node (i.e. with no raw `nullptr`s) using what you've
165165
provided to the builder so far. Anything that you haven't supplied is marked as
166-
*missing*. This is essentially what the parser does so, looking forward to
166+
*missing*. This is essentially what the parser does; so, looking forward to
167167
future adoption, the builders are designed with the parser in mind, with the
168168
hope that we can better specify recovery behavior and incremental (re-)parsing.
169169

@@ -390,7 +390,8 @@ Beyond this, `SyntaxData` nodes have *no significant public API*.
390390
391391
- `SyntaxData` are immutable.
392392
However, they may mutate themselves in order to implement lazy instantiation
393-
of children and caching. That caching operation transparent and thread-safe.
393+
of children and caching. That caching operation is transparent and
394+
thread-safe.
394395
- `SyntaxData` have identity, i.e. they can be compared with "pointer equality".
395396
- `SyntaxData` are implementation detail have no public API.
396397

0 commit comments

Comments
 (0)