Skip to content

Commit 004994f

Browse files
authored
Fix a typo in the documentation for TimeLimitTrait. (#432)
Takes `.seconds()`, not `.minutes()` as of #391. ### 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 db25103 commit 004994f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Testing.docc/LimitingExecutionTime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ complete effectively, consider setting a time limit for it so that it's marked a
2323
``Trait/timeLimit(_:)`` trait as an upper bound:
2424

2525
```swift
26-
@Test(.timeLimit(.seconds(60 * 60))
26+
@Test(.timeLimit(.minutes(60))
2727
func serve100CustomersInOneHour() async {
2828
for _ in 0 ..< 100 {
2929
let customer = await Customer.next()

0 commit comments

Comments
 (0)