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 f53826a + 99e5570 commit e423640Copy full SHA for e423640
stdlib/public/core/UnsafeRawBufferPointer.swift.gyb
@@ -467,7 +467,7 @@ public struct Unsafe${Mutable}RawBufferPointer
467
_debugPrecondition(bounds.upperBound <= endIndex)
468
_debugPrecondition(bounds.count == newValue.count)
469
470
- if newValue.count > 0 {
+ if !newValue.isEmpty {
471
(baseAddress! + bounds.lowerBound).copyBytes(
472
from: newValue.base.baseAddress! + newValue.startIndex,
473
count: newValue.count)
0 commit comments