swiftlang/swift-book

Missing Code Sample in Sendable Types

Closed this issue · 1 comments

Location

https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency#Sendable-Types

Description

The final paragraph in the subsection reads: In the code above, the NonsendableTemperatureReading is a structure that meets the criteria to be implicitly sendable. However, the extension makes its conformance to Sendable unavailable, preventing the type from being sendable.

The problem is that there is no code sample that contains the NonsendableTemperatureReading structure.

Correction

Find the missing code sample and incorporate it above the final paragraph. It's also not in the 5.7 version of TSPL, so I'm not sure what it is.

This is fixed in commit 7b40a13 which will be merged by PR #228.