We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe9376d + a0277e2 commit 92416e7Copy full SHA for 92416e7
stdlib/public/core/UnsafeRawPointer.swift
@@ -78,7 +78,7 @@
78
/// offset by that number of bytes. The following example allocates four bytes
79
/// of memory and stores `0xFF` in all four bytes:
80
///
81
-/// let bytesPointer = UnsafeMutableRawPointer.allocate(byteCount: 4, alignment: 1)
+/// let bytesPointer = UnsafeMutableRawPointer.allocate(byteCount: 4, alignment: 4)
82
/// bytesPointer.storeBytes(of: 0xFFFF_FFFF, as: UInt32.self)
83
84
/// // Load a value from the memory referenced by 'bytesPointer'
0 commit comments