Skip to content

Commit 68ccbce

Browse files
committed
[TaskLocal] Remove comment which is true, but is confusing to end users
because it discusses an implementation detail of the type the comment is on. Instead, when developers read comments they think about what they can store inside a task local -- so the comment about "task local must be a class" led them to believe THEIR types must be classes, while the comment was explaining the implementation detail of `class TaskLocal<T>`. Resolves rdar://117982608
1 parent 9bc4e4b commit 68ccbce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

stdlib/public/Concurrency/TaskLocal.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ import Swift
9090
/// func call() {
9191
/// print("traceID: \(traceID)") // 1234
9292
/// }
93-
///
94-
/// This type must be a `class` so it has a stable identity, that is used as key
95-
/// value for lookups in the task local storage.
9693
@propertyWrapper
9794
@available(SwiftStdlib 5.1, *)
9895
public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible {

0 commit comments

Comments
 (0)