Skip to content

Commit a6426d4

Browse files
committed
Copy this approach into the style guide.
1 parent 92ea0bf commit a6426d4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Style.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ Spelled as two words, not closed up or hyphenated.
106106

107107
See entry for *Swift*.
108108

109+
## deprecation
110+
111+
In the language reference,
112+
include a deprecation note at the start of a section
113+
that describes a deprecated feature.
114+
Use wording and markup like the following:
115+
116+
```
117+
> Deprecated:
118+
> This attribute is deprecated;
119+
> use the <doc:Attributes#main> attribute instead.
120+
> In Swift 6,
121+
> using this attribute will be an error.
122+
```
123+
109124
## function
110125

111126
In the reference,

0 commit comments

Comments
 (0)