Skip to content

Commit 22741db

Browse files
authored
Merge pull request #77943 from swiftlang/Kyle-Ye-patch-1
2 parents d5f7f6f + 7c6cc14 commit 22741db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Concurrency/TaskLocal.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public macro TaskLocal() =
100100
/// func enter() {
101101
/// Example.$traceID.withValue("1234") {
102102
/// read() // always "1234", regardless if enter() was called from inside a task or not:
103+
/// }
103104
/// }
104105
///
105106
/// func read() -> String {
@@ -157,7 +158,7 @@ public macro TaskLocal() =
157158
/// }
158159
/// }
159160
///
160-
/// - SeeAlso: ``TaskLocal-macro``
161+
/// - SeeAlso: ``TaskLocal()-macro``
161162
@available(SwiftStdlib 5.1, *)
162163
public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible {
163164
let defaultValue: Value

0 commit comments

Comments
 (0)