File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ were called on that task.
134134### Throwing semantics
135135
136136Unlike [`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
138138control 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
156156semantically similar to [`CancellationError`](https :// developer.apple.com/documentation/swift/cancellationerror)
157157but carries additional information (namely the `comment` and `sourceLocation`
158158arguments 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)
You can’t perform that action at this time.
0 commit comments