We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99505d0 commit 1f4ed8dCopy full SHA for 1f4ed8d
stdlib/public/core/UnsafePointer.swift
@@ -781,7 +781,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
781
@inlinable
782
@_silgen_name("$sSp6assign9repeating5countyx_SitF")
783
public func update(repeating repeatedValue: Pointee, count: Int) {
784
- _debugPrecondition(count >= 0, "UnsafeMutablePointer.assign(repeating:count:) with negative count")
+ _debugPrecondition(count >= 0, "UnsafeMutablePointer.update(repeating:count:) with negative count")
785
for i in 0..<count {
786
self[i] = repeatedValue
787
}
0 commit comments