Skip to content

Commit 2bcc6a7

Browse files
committed
[doc] update doc-comment references to a long-renamed function
fixes SR-12938
1 parent 85891fd commit 2bcc6a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/UnsafePointer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public struct UnsafePointer<Pointee>: _Pointer, Sendable {
359359
/// deinitialized is in an *uninitialized* state. Uninitialized memory must be
360360
/// initialized before it can be accessed for reading.
361361
///
362-
/// You can use methods like `initialize(to:count:)`, `initialize(from:count:)`,
362+
/// You can use methods like `initialize(repeating:count:)`, `initialize(from:count:)`,
363363
/// and `moveInitialize(from:count:)` to initialize the memory referenced by a
364364
/// pointer with a value or series of values.
365365
///
@@ -635,7 +635,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer, Sendable {
635635
///
636636
/// Do not assign an instance of a nontrivial type through `pointee` to
637637
/// uninitialized memory. Instead, use an initializing method, such as
638-
/// `initialize(to:count:)`.
638+
/// `initialize(repeating:count:)`.
639639
@inlinable // unsafe-performance
640640
public var pointee: Pointee {
641641
@_transparent unsafeAddress {
@@ -961,7 +961,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer, Sendable {
961961
///
962962
/// Do not assign an instance of a nontrivial type through the subscript to
963963
/// uninitialized memory. Instead, use an initializing method, such as
964-
/// `initialize(to:count:)`.
964+
/// `initialize(repeating:count:)`.
965965
///
966966
/// - Parameter i: The offset from this pointer at which to access an
967967
/// instance, measured in strides of the pointer's `Pointee` type.

0 commit comments

Comments
 (0)