Skip to content

Commit 323febd

Browse files
authored
Fix two DocC symbol references to #expect(throws:...) (#435)
Small fixup to the changes landed in #408 to fix the capitalization of two DocC symbol references: ``` ⚠️ Sources/Testing/Testing.docc/testing-for-errors-in-swift-code.md:29:21: 'expect(throws:_:sourcelocation:performing:)-1xr34' doesn't exist at '/Testing/testing-for-errors-in-swift-code' ``` ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 402243c commit 323febd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Testing.docc/testing-for-errors-in-swift-code.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If the code throws an error, then your test fails.
2626

2727
To check that the code under test throws a specific error, or to continue a
2828
longer test function after the code throws an error, pass that error as the
29-
first argument of ``expect(throws:_:sourcelocation:performing:)-1xr34``, and
29+
first argument of ``expect(throws:_:sourceLocation:performing:)-1xr34``, and
3030
pass a closure that calls the code under test:
3131

3232
```swift
@@ -65,4 +65,4 @@ the error to `Never`:
6565
If the closure throws _any_ error, the testing library records an issue.
6666
If you need the test to stop when the code throws an error, include the
6767
code inline in the test function instead of wrapping it in an
68-
``expect(throws:_:sourcelocation:performing:)-1xr34`` block.
68+
``expect(throws:_:sourceLocation:performing:)-1xr34`` block.

0 commit comments

Comments
 (0)