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.
2 parents cec85b7 + 2c769b1 commit 7fcf1dbCopy full SHA for 7fcf1db
stdlib/public/core/UnsafePointer.swift.gyb
@@ -172,8 +172,8 @@ public struct ${Self}<Pointee>
172
///
173
/// - Postcondition: The pointee is initialized; the value should eventually
174
/// be destroyed or moved from to avoid leaks.
175
- // FIXME: add tests (since the `count` has been added)
176
public func initialize(with newValue: Pointee, count: Int = 1) {
+ // FIXME: add tests (since the `count` has been added)
177
_debugPrecondition(count >= 0,
178
"${Self}.initialize(with:): negative count")
179
// Must not use `initializeFrom` with a `Collection` as that will introduce
0 commit comments