Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Style.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ Use wording and markup like the following:
> using this attribute will be an error.
```

And when it becomes an error:

```
> Deprecated:
> This attribute is deprecated;
> use the <doc:Attributes#main> attribute instead.
> In Swift 6,
> using this attribute produces a compile-time error.
```

## definite initialization

Not “definitive initialization”.
Expand Down
4 changes: 2 additions & 2 deletions TSPL.docc/ReferenceManual/Attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ for a method marked with the `objc` attribute.
> This attribute is deprecated;
> use the <doc:Attributes#main> attribute instead.
> In Swift 6,
> using this attribute will be an error.
> using this attribute produces a compile-time error.

Apply this attribute to a class
to indicate that it's the app delegate.
Expand Down Expand Up @@ -2520,7 +2520,7 @@ The imported module must be compiled with testing enabled.
> This attribute is deprecated;
> use the <doc:Attributes#main> attribute instead.
> In Swift 6,
> using this attribute will be an error.
> using this attribute produces a compile-time error.

Apply this attribute to a class
to indicate that it's the app delegate.
Expand Down
6 changes: 3 additions & 3 deletions TSPL.docc/ReferenceManual/Declarations.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ The Swift code you compile to make an executable
can contain at most one of the following approaches
to mark the top-level entry point,
regardless of how the code is organized into files and modules:
a file that contains top-level executable code,
a `main.swift` file,
the `main` attribute,
the `NSApplicationMain` attribute,
the `UIApplicationMain` attribute,
a `main.swift` file,
or a file that contains top-level executable code.
or the `UIApplicationMain` attribute.

> Grammar of a top-level declaration:
>
Expand Down