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.
1 parent 5494a24 commit a25f72bCopy full SHA for a25f72b
stdlib/public/core/UnsafePointer.swift
@@ -788,6 +788,10 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
788
///
789
/// intPointer.deallocate()
790
791
+ /// You must only use `deallocate()` to end the lifetime of memory
792
+ /// created with `allocate()`; it is a programming error to use `free` or
793
+ /// another deallocation API, and may result in undefined behavior.
794
+ ///
795
/// - Parameter count: The amount of memory to allocate, counted in instances
796
/// of `Pointee`.
797
@inlinable
0 commit comments