swiftlang / swift-book

The Swift Programming Language book
Apache License 2.0
1.72k stars 159 forks source link

Fix typo in macro name #316

Closed Alc-Alc closed 3 months ago

Alc-Alc commented 3 months ago

Code

@attached(member, names: named(RawValue), named(rawValue),
        named(`init`), arbitrary)

Prose

the `@attached(member)` macro includes arguments after the `named:` label

In the code the label is referred to as "names", but the prose refers to it as "named". This PR suggests a doc fix that uses the correct label ("names") in the prose.