Skip to content

Commit b585cee

Browse files
authored
Merge pull request swiftlang#69385 from amartini51/pointer_typo_cherrypick
Fix copy/paste error in UnsafeMutablePointer documentation
2 parents 1b4d116 + f3ff150 commit b585cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/UnsafePointer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
611611
self.init(mutating: unwrapped)
612612
}
613613

614-
/// Creates an immutable typed pointer referencing the same memory as the
614+
/// Creates a mutable typed pointer referencing the same memory as the
615615
/// given mutable pointer.
616616
///
617617
/// - Parameter other: The pointer to convert.
@@ -620,7 +620,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
620620
self._rawValue = other._rawValue
621621
}
622622

623-
/// Creates an immutable typed pointer referencing the same memory as the
623+
/// Creates a mutable typed pointer referencing the same memory as the
624624
/// given mutable pointer.
625625
///
626626
/// - Parameter other: The pointer to convert. If `other` is `nil`, the

0 commit comments

Comments
 (0)