Skip to content

Commit e34ee7b

Browse files
committed
Fixes example snippet in MemoryLayout.swift
1 parent 62e5780 commit e34ee7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/MemoryLayout.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
///
3838
/// let count = 4
3939
/// let pointPointer = UnsafeMutableRawPointer.allocate(
40-
/// bytes: count * MemoryLayout<Point>.stride,
41-
/// alignedTo: MemoryLayout<Point>.alignment)
40+
/// byteCount: count * MemoryLayout<Point>.stride,
41+
/// alignment: MemoryLayout<Point>.alignment)
4242
@frozen // namespace
4343
public enum MemoryLayout<T> {
4444
/// The contiguous memory footprint of `T`, in bytes.

0 commit comments

Comments
 (0)