Skip to content

Commit 15c0f7b

Browse files
authored
Fix a few typos (#210)
2 parents e135b9e + 1e52596 commit 15c0f7b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

TSPL.docc/LanguageGuide/Macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ is a freestanding macro that produces an expression,
568568
so the `FourCharacterCode` type that implements it
569569
conforms to the `ExpressionMacro` protocol.
570570
The `ExpressionMacro` protocol has one requirement,
571-
a `expansion(of:in:)` method that expands the AST.
571+
an `expansion(of:in:)` method that expands the AST.
572572
For the list of macro roles and their corresponding SwiftSyntax protocols,
573573
see <doc:Attributes#attached> and <doc:Attributes#freestanding>
574574
in <doc:Attributes>.

TSPL.docc/LanguageGuide/Properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ struct AlternativeRect {
488488

489489
If the entire body of a getter is a single expression,
490490
the getter implicitly returns that expression.
491-
Here's an another version of the `Rect` structure
491+
Here's another version of the `Rect` structure
492492
that takes advantage of this shorthand notation
493493
and the shorthand notation for setters:
494494

TSPL.docc/ReferenceManual/Attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,7 @@ You can apply that attribute in the following places:
22952295
Applying a result builder attribute doesn't impact ABI compatibility.
22962296
Applying a result builder attribute to a parameter
22972297
makes that attribute part of the function's interface,
2298-
which can effect source compatibility.
2298+
which can affect source compatibility.
22992299

23002300
### requires_stored_property_inits
23012301

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ Calls to a throwing function or method must be wrapped in a `try` or `try!` expr
14711471
The `throws` keyword is part of a function's type,
14721472
and nonthrowing functions are subtypes of throwing functions.
14731473
As a result, you can use a nonthrowing function
1474-
in a context where as a throwing one is expected.
1474+
in a context where a throwing one is expected.
14751475

14761476
You can't overload a function based only on whether the function can throw an error.
14771477
That said,
@@ -3182,7 +3182,7 @@ even if the extensions' requirements are mutually exclusive.
31823182
This restriction is demonstrated in the example below.
31833183
Two extension declarations attempt to add conditional conformance
31843184
to the `Serializable` protocol,
3185-
one for for arrays with `Int` elements,
3185+
one for arrays with `Int` elements,
31863186
and one for arrays with `String` elements.
31873187

31883188
```swift

TSPL.docc/ReferenceManual/Expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ the type of `x` matches the type implied by its context exactly,
13641364
the type of `y` is convertible from `SomeClass` to `SomeClass?`,
13651365
and the type of `z` is convertible from `SomeSubclass` to `SomeClass`.
13661366

1367-
> Grammar of a implicit member expression:
1367+
> Grammar of an implicit member expression:
13681368
>
13691369
> *implicit-member-expression* **`.`** *identifier* \
13701370
> *implicit-member-expression* **`.`** *identifier* **`.`** *postfix-expression*

TSPL.docc/ReferenceManual/SummaryOfTheGrammar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ make the same change here also.
439439
> *capture-list-item**capture-specifier*_?_ *self-expression* \
440440
> *capture-specifier***`weak`** | **`unowned`** | **`unowned(safe)`** | **`unowned(unsafe)`**
441441
442-
> Grammar of a implicit member expression:
442+
> Grammar of an implicit member expression:
443443
>
444444
> *implicit-member-expression***`.`** *identifier* \
445445
> *implicit-member-expression***`.`** *identifier* **`.`** *postfix-expression*

0 commit comments

Comments
 (0)