swift-book
swift-book copied to clipboard
The Swift Programming Language book
### Location https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID374 ### Description For example, `P2` in the following code: ``` protocol P1 { associatedtype T } protocol P2 { associatedtype T: Comparable = Int } // P2...
In the following portion of the grammar: ``` > Grammar of an identifier: > > *identifier* → *identifier-head* *identifier-characters*_?_ > > *identifier* → **`` ` ``** *identifier-head* *identifier-characters*_?_ **`` `...
Currently, the formal grammar is manually duplicated — each rule appears one in its section reference, and again in the summary of the grammar at the end of the reference....
| | | |------------------|-----------------| |Previous ID | SR-15597 | |Radar | None | |Original Reporter | Saurabh Pote (JIRA User) | |Type | Bug | Attachment: [Download](https://user-images.githubusercontent.com/2727770/164964392-0b2f9c15-eae4-405f-837d-217db9756602.gz) Environment Playground -...
After #1, #36 and https://github.com/apple/swift-docc/issues/377 were resolved, currently there should be no warnings when building the newest swift-book using the newest swift-docc. ``` Input: /Users/kyle/Workspace/Github/swift-docc-project/swift-book/Sources/TSPL/TSPL.docc Template: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault .xctoolchain/usr/bin/../share/docc/render ============================== Starting...
Fix: #321
### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/thebasics ### Description Twitter and feed icon in the footer of the documentation are coupled together without any gap or padding. ### Correction There should be some gap...
A common misconception that people have about `buildLimitedAvailability` is that it enables the following syntax in result builders: ```swift @DrawingBuilder var x: Drawable { if #available(macOS 99, *) { FutureText("Inside.future")...
If you conceptualize access as being either a read or a write, and either atomic or nonatomic, the old and new wording means the same thing. However, if you divide...
### Location _No response_ ### Description I believe I've found some incorrect wording under the "Extensions" heading. Here's the line: "You can’t provide an explicit access-level modifier for an extension...