Skip to content

Commit f3ff150

Browse files
Kyle-Yeamartini51
authored andcommitted
[Documentation] Fix UnsafeMutablePointer's documentation
(cherry picked from commit f96ae2f)
1 parent 1b9d8c8 commit f3ff150

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)