Skip to content

Commit 1f4ed8d

Browse files
Update stdlib/public/core/UnsafePointer.swift
Co-authored-by: Ben Rimmington <[email protected]>
1 parent 99505d0 commit 1f4ed8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/UnsafePointer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
781781
@inlinable
782782
@_silgen_name("$sSp6assign9repeating5countyx_SitF")
783783
public func update(repeating repeatedValue: Pointee, count: Int) {
784-
_debugPrecondition(count >= 0, "UnsafeMutablePointer.assign(repeating:count:) with negative count")
784+
_debugPrecondition(count >= 0, "UnsafeMutablePointer.update(repeating:count:) with negative count")
785785
for i in 0..<count {
786786
self[i] = repeatedValue
787787
}

0 commit comments

Comments
 (0)