Skip to content

Commit 63323e0

Browse files
committed
Match parameter names in docs to the declaration
1 parent 70536cd commit 63323e0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public struct AsyncStream<Element> {
250250
///
251251
/// - Parameters:
252252
/// - elementType: The type of element the `AsyncStream` produces.
253-
/// - bufferingPolicy: A `Continuation.BufferingPolicy` value to
253+
/// - limit: A `Continuation.BufferingPolicy` value to
254254
/// set the stream's buffering behavior. By default, the stream buffers an
255255
/// unlimited number of elements. You can also set the policy to buffer a
256256
/// specified number of oldest or newest elements.

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
832832
/// Instead, the corresponding call to `ThrowingTaskGroup.next()` rethrows that error.
833833
///
834834
/// - Parameters:
835-
/// - overridingPriority: The priority of the operation task.
835+
/// - priority: The priority of the operation task.
836836
/// Omit this parameter or pass `.unspecified`
837837
/// to set the child task's priority to the priority of the group.
838838
/// - operation: The operation to execute as part of the task group.
@@ -863,7 +863,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
863863
/// Instead, the corresponding call to `ThrowingTaskGroup.next()` rethrows that error.
864864
///
865865
/// - Parameters:
866-
/// - overridingPriority: The priority of the operation task.
866+
/// - priority: The priority of the operation task.
867867
/// Omit this parameter or pass `.unspecified`
868868
/// to set the child task's priority to the priority of the group.
869869
/// - operation: The operation to execute as part of the task group.

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public struct ObjectIdentifier: Sendable {
5959

6060
/// Creates an instance that uniquely identifies the given metatype.
6161
///
62-
/// - Parameter: A metatype.
62+
/// - x: A metatype.
6363
@inlinable // trivial-implementation
6464
public init(_ x: Any.Type) {
6565
self._value = unsafeBitCast(x, to: Builtin.RawPointer.self)

stdlib/public/core/StringRangeReplaceableCollection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ extension String: RangeReplaceableCollection {
183183
/// string.
184184
///
185185
/// - Parameters:
186-
/// - bounds: The range of text to replace. The bounds of the range must be
186+
/// - subrange: The range of text to replace. The bounds of the range must be
187187
/// valid indices of the string.
188188
/// - newElements: The new characters to add to the string.
189189
///

stdlib/public/core/StringUTF16View.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ extension String.UTF16View.Index {
540540
/// // Prints "Café"
541541
///
542542
/// - Parameters:
543-
/// - sourcePosition: A position in at least one of the views of the string
543+
/// - idx: A position in at least one of the views of the string
544544
/// shared by `target`.
545545
/// - target: The `UTF16View` in which to find the new position.
546546
public init?(

stdlib/public/core/StringUTF8View.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ extension String.UTF8View.Index {
354354
/// // Prints "nil"
355355
///
356356
/// - Parameters:
357-
/// - sourcePosition: A position in a `String` or one of its views.
357+
/// - idx: A position in a `String` or one of its views.
358358
/// - target: The `UTF8View` in which to find the new position.
359359
public init?(_ idx: String.Index, within target: String.UTF8View) {
360360
// Note: This method used to be inlinable until Swift 5.7.

0 commit comments

Comments
 (0)