Skip to content

Commit 5867661

Browse files
committed
[Dispatch] .size to .stride
1 parent 1c58315 commit 5867661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SDK/Dispatch/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public struct DispatchData : RandomAccessCollection, _ObjectiveCBridgeable {
149149

150150
/// Copy the contents of the data into a buffer.
151151
///
152-
/// This function copies the bytes in `range` from the data into the buffer. If the count of the `range` is greater than `MemoryLayout<DestinationType>.size * buffer.count` then the first N bytes will be copied into the buffer.
152+
/// This function copies the bytes in `range` from the data into the buffer. If the count of the `range` is greater than `MemoryLayout<DestinationType>.stride * buffer.count` then the first N bytes will be copied into the buffer.
153153
/// - precondition: The range must be within the bounds of the data. Otherwise `fatalError` is called.
154154
/// - parameter buffer: A buffer to copy the data into.
155155
/// - parameter range: A range in the data to copy into the buffer. If the range is empty, this function will return 0 without copying anything. If the range is nil, as much data as will fit into `buffer` is copied.

0 commit comments

Comments
 (0)