Skip to content

Commit 806a2eb

Browse files
committed
Fix typo
1 parent 343d43a commit 806a2eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/testing/NNNN-test-cancellation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ were called on that task.
134134
### Throwing semantics
135135

136136
Unlike [`Task.cancel()`](https://developer.apple.com/documentation/swift/task/cancel()),
137-
these functions always throw an error instead of returning. This simplifies
137+
this function always throws an error instead of returning. This simplifies
138138
control flow when a test is cancelled; instead of having to write:
139139

140140
```swift
@@ -152,7 +152,7 @@ if condition {
152152
}
153153
```
154154

155-
The errors these functions throw are of a type internal to Swift Testing that is
155+
The errors this function throws are of a type internal to Swift Testing that is
156156
semantically similar to [`CancellationError`](https://developer.apple.com/documentation/swift/cancellationerror)
157157
but carries additional information (namely the `comment` and `sourceLocation`
158158
arguments to `cancel(_:sourceLocation:)`) that Swift Testing can present to the
@@ -269,7 +269,7 @@ JSON schema (currently expected to be schema version `"6.3"`).
269269
but core functionality of Swift Testing needs to be usable without also
270270
importing XCTest.
271271

272-
- Spelling the functions `static func cancel(_:sourceLocation:) -> some Error`
272+
- Spelling the function `static func cancel(_:sourceLocation:) -> some Error`
273273
and requiring it be called as `throw Test.cancel()`. This is closer to how
274274
the [`XCTSkip`](https://developer.apple.com/documentation/xctest/xctskip-swift.struct)
275275
type is used in XCTest. We have received indirect feedback about [`XCTSkip`](https://developer.apple.com/documentation/xctest/xctskip-swift.struct)

0 commit comments

Comments
 (0)