From 21837beb0ba3b6ae5aaa37c09f6e97b50a2ec4c5 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Thu, 18 Sep 2025 11:12:37 +0200 Subject: [PATCH] Fix doc comment to make it match code --- .../Atomics/AtomicFloats.swift | 6 ++-- .../Atomics/AtomicOptional.swift | 6 ++-- .../Atomics/AtomicPointers.swift | 36 +++++++++---------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/stdlib/public/Synchronization/Atomics/AtomicFloats.swift b/stdlib/public/Synchronization/Atomics/AtomicFloats.swift index 4a2670a365f4c..540dd4a02197d 100644 --- a/stdlib/public/Synchronization/Atomics/AtomicFloats.swift +++ b/stdlib/public/Synchronization/Atomics/AtomicFloats.swift @@ -49,7 +49,7 @@ extension Float16: AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -101,7 +101,7 @@ extension Float: AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -153,7 +153,7 @@ extension Double: AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) diff --git a/stdlib/public/Synchronization/Atomics/AtomicOptional.swift b/stdlib/public/Synchronization/Atomics/AtomicOptional.swift index 3832ce02bd36f..37ae489419146 100644 --- a/stdlib/public/Synchronization/Atomics/AtomicOptional.swift +++ b/stdlib/public/Synchronization/Atomics/AtomicOptional.swift @@ -42,7 +42,7 @@ public protocol AtomicOptionalRepresentable: AtomicRepresentable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. static func decodeAtomicOptionalRepresentation( @@ -101,7 +101,7 @@ where /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -153,7 +153,7 @@ extension Optional: AtomicRepresentable where Wrapped: AtomicOptionalRepresentab /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) diff --git a/stdlib/public/Synchronization/Atomics/AtomicPointers.swift b/stdlib/public/Synchronization/Atomics/AtomicPointers.swift index 286c1ba9afa95..b5869f6ebb188 100644 --- a/stdlib/public/Synchronization/Atomics/AtomicPointers.swift +++ b/stdlib/public/Synchronization/Atomics/AtomicPointers.swift @@ -49,7 +49,7 @@ extension UnsafePointer: @unsafe AtomicRepresentable where Pointee: ~Copyable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -101,7 +101,7 @@ extension UnsafePointer: @unsafe AtomicOptionalRepresentable where Pointee: ~Cop /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -155,7 +155,7 @@ extension UnsafeMutablePointer: @unsafe AtomicRepresentable where Pointee: ~Copy /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -208,7 +208,7 @@ where Pointee: ~Copyable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -262,7 +262,7 @@ extension UnsafeRawPointer: @unsafe AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -314,7 +314,7 @@ extension UnsafeRawPointer: @unsafe AtomicOptionalRepresentable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -368,7 +368,7 @@ extension UnsafeMutableRawPointer: @unsafe AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -420,7 +420,7 @@ extension UnsafeMutableRawPointer: @unsafe AtomicOptionalRepresentable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -474,7 +474,7 @@ extension Unmanaged: @unsafe AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -534,7 +534,7 @@ extension Unmanaged: @unsafe AtomicOptionalRepresentable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -588,7 +588,7 @@ extension OpaquePointer: @unsafe AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -640,7 +640,7 @@ extension OpaquePointer: @unsafe AtomicOptionalRepresentable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -694,7 +694,7 @@ extension ObjectIdentifier: AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -750,7 +750,7 @@ extension ObjectIdentifier: AtomicOptionalRepresentable { /// representation used in atomic operations on `Optional` back into the /// logical type for normal use, `Self?`. /// - /// - Parameter storage: The optional storage representation for `Self?` + /// - Parameter representation: The optional storage representation for `Self?` /// that's used within atomic operations on `Optional`. /// - Returns: The newly decoded logical type `Self?`. @available(SwiftStdlib 6.0, *) @@ -813,7 +813,7 @@ extension UnsafeBufferPointer: @unsafe AtomicRepresentable where Element: ~Copya /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -881,7 +881,7 @@ where Element: ~Copyable /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -947,7 +947,7 @@ extension UnsafeRawBufferPointer: @unsafe AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *) @@ -1013,7 +1013,7 @@ extension UnsafeMutableRawBufferPointer: @unsafe AtomicRepresentable { /// representation used in atomic operations back into the logical type for /// normal use, `Self`. /// - /// - Parameter storage: The storage representation for `Self` that's used + /// - Parameter representation: The storage representation for `Self` that's used /// within atomic operations. /// - Returns: The newly decoded logical type `Self`. @available(SwiftStdlib 6.0, *)