Skip to content

Commit 1c03068

Browse files
committed
Revert "Rename parameter count => byteCount to make signature match doc comment and match other methods"
This reverts commit 4129383.
1 parent 43ead66 commit 1c03068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/Span/RawSpan.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,11 @@ extension RawSpan {
301301
@lifetime(borrow pointer)
302302
public init<T: BitwiseCopyable>(
303303
_unsafeStart pointer: UnsafePointer<T>,
304-
byteCount: Int
304+
count: Int
305305
) {
306-
_precondition(byteCount >= 0, "Count must not be negative")
306+
_precondition(count >= 0, "Count must not be negative")
307307
unsafe self.init(
308-
_unchecked: pointer, byteCount: byteCount * MemoryLayout<T>.stride
308+
_unchecked: pointer, byteCount: count * MemoryLayout<T>.stride
309309
)
310310
}
311311

0 commit comments

Comments
 (0)