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 43ead66 commit 1c03068Copy full SHA for 1c03068
stdlib/public/core/Span/RawSpan.swift
@@ -301,11 +301,11 @@ extension RawSpan {
301
@lifetime(borrow pointer)
302
public init<T: BitwiseCopyable>(
303
_unsafeStart pointer: UnsafePointer<T>,
304
- byteCount: Int
+ count: Int
305
) {
306
- _precondition(byteCount >= 0, "Count must not be negative")
+ _precondition(count >= 0, "Count must not be negative")
307
unsafe self.init(
308
- _unchecked: pointer, byteCount: byteCount * MemoryLayout<T>.stride
+ _unchecked: pointer, byteCount: count * MemoryLayout<T>.stride
309
)
310
}
311
0 commit comments