Skip to content

Commit 74a3401

Browse files
authored
Fix Tag example in documentation. (#465)
Attribute Tag must by applied to type Tag and not type Tag.com_example_foodtruck. ### 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 37f3ad1 commit 74a3401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Testing.docc/AddingTags.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ extension Tag {
6262
}
6363

6464
extension Tag.com_example_foodtruck {
65-
@Tag static var extraSpecial: Self
65+
@Tag static var extraSpecial: Tag
6666
}
6767

68-
@Test
68+
@Test(
6969
"Extra Special Sauce recipe is secret",
7070
.tags(.com_example_foodtruck.extraSpecial)
7171
)

0 commit comments

Comments
 (0)