Skip to content

Commit f96ae2f

Browse files
authored
[Documentation] Fix UnsafeMutablePointer's documentation
1 parent dcd5405 commit f96ae2f

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
@@ -612,7 +612,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
612612
self.init(mutating: unwrapped)
613613
}
614614

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

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

0 commit comments

Comments
 (0)