From a3e8d1068fc107c4b5e14b9b5f06b36457a69770 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 4 Dec 2024 14:47:37 +0800 Subject: [PATCH 1/2] Fix missing curly brace in TaskLocal documentation --- stdlib/public/Concurrency/TaskLocal.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/public/Concurrency/TaskLocal.swift b/stdlib/public/Concurrency/TaskLocal.swift index a13593edeef1d..8e81c891304a0 100644 --- a/stdlib/public/Concurrency/TaskLocal.swift +++ b/stdlib/public/Concurrency/TaskLocal.swift @@ -100,6 +100,7 @@ public macro TaskLocal() = /// func enter() { /// Example.$traceID.withValue("1234") { /// read() // always "1234", regardless if enter() was called from inside a task or not: +/// } /// } /// /// func read() -> String { From 7c6cc140ad51d0571c19e5224ae41c57fc28c198 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 4 Dec 2024 15:17:10 +0800 Subject: [PATCH 2/2] Fix TaskLocal macro link issue --- stdlib/public/Concurrency/TaskLocal.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/public/Concurrency/TaskLocal.swift b/stdlib/public/Concurrency/TaskLocal.swift index 8e81c891304a0..93c0ca75f20a2 100644 --- a/stdlib/public/Concurrency/TaskLocal.swift +++ b/stdlib/public/Concurrency/TaskLocal.swift @@ -158,7 +158,7 @@ public macro TaskLocal() = /// } /// } /// -/// - SeeAlso: ``TaskLocal-macro`` +/// - SeeAlso: ``TaskLocal()-macro`` @available(SwiftStdlib 5.1, *) public final class TaskLocal: Sendable, CustomStringConvertible { let defaultValue: Value