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 74a8254 commit 83c14bcCopy full SHA for 83c14bc
stdlib/public/core/UnsafeRawBufferPointer.swift.gyb
@@ -432,8 +432,8 @@ extension Unsafe${Mutable}RawBufferPointer {
432
public init(
433
@_nonEphemeral start: Unsafe${Mutable}RawPointer?, count: Int
434
) {
435
- _precondition(count >= 0, "${Self} with negative count")
436
- _precondition(count == 0 || start != nil,
+ _debugPrecondition(count >= 0, "${Self} with negative count")
+ _debugPrecondition(count == 0 || start != nil,
437
"${Self} has a nil start and nonzero count")
438
_position = start
439
_end = start.map { $0 + count }
0 commit comments