Skip to content

Commit 82e04f8

Browse files
authored
Merge pull request swiftlang#31480 from valeriyvan/FixExampleSnippetMemoryLayout.swift
2 parents 5500688 + e34ee7b commit 82e04f8

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)