Skip to content

Commit 4129383

Browse files
committed
Rename parameter count => byteCount to make signature match doc comment and match other methods
1 parent 505d55c commit 4129383

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-
count: Int
304+
byteCount: Int
305305
) {
306-
_precondition(count >= 0, "Count must not be negative")
306+
_precondition(byteCount >= 0, "Count must not be negative")
307307
unsafe self.init(
308-
_unchecked: pointer, byteCount: count * MemoryLayout<T>.stride
308+
_unchecked: pointer, byteCount: byteCount * MemoryLayout<T>.stride
309309
)
310310
}
311311

0 commit comments

Comments
 (0)