Skip to content

Commit 488a82d

Browse files
committed
Fix DocC references
1 parent c8c37be commit 488a82d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/Testing/Expectations/Expectation+Macro.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
/// running in the current task and an instance of ``ExpectationFailedError`` is
9090
/// thrown.
9191
///
92-
/// This overload of ``require(_:_:sourceLocation:)-6w9oo`` checks if
92+
/// This overload of ``require(_:_:sourceLocation:)-5l63q`` checks if
9393
/// `optionalValue` may be ambiguous (i.e. it is unclear if the developer
9494
/// intended to check for a boolean value or unwrap an optional boolean value)
9595
/// and provides additional compile-time diagnostics when it is.
@@ -118,7 +118,7 @@ public macro require(
118118
/// running in the current task and an instance of ``ExpectationFailedError`` is
119119
/// thrown.
120120
///
121-
/// This overload of ``require(_:_:sourceLocation:)-6w9oo`` is used when a
121+
/// This overload of ``require(_:_:sourceLocation:)-5l63q`` is used when a
122122
/// non-optional, non-`Bool` value is passed to `#require()`. It emits a warning
123123
/// diagnostic indicating that the expectation is redundant.
124124
@freestanding(expression)

Sources/Testing/Testing.docc/Expectations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ the test when the code doesn't satisfy a requirement, use
6060

6161
- ``expect(_:_:sourceLocation:)``
6262
- ``require(_:_:sourceLocation:)-5l63q``
63-
- ``require(_:_:sourceLocation:)-6w9oo``
63+
- ``require(_:_:sourceLocation:)-1k9w3``
6464

6565
### Checking that errors are thrown
6666

Sources/Testing/Testing.docc/MigratingFromXCTest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ error if its condition isn't met:
245245

246246
XCTest also has a function, [`XCTUnwrap()`](https://developer.apple.com/documentation/xctest/3380195-xctunwrap),
247247
that tests if an optional value is `nil` and throws an error if it is. When
248-
using the testing library, you can use ``require(_:_:sourceLocation:)-6w9oo``
248+
using the testing library, you can use ``require(_:_:sourceLocation:)-1k9w3``
249249
with optional expressions to unwrap them:
250250

251251
@Row {

0 commit comments

Comments
 (0)