File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,8 @@ public struct UnsafeRawPointer: _Pointer {
436
436
/// Returns a new instance of the given type, constructed from the raw memory
437
437
/// at the specified offset.
438
438
///
439
- /// This function only supports loading trivial types.
439
+ /// This function only supports loading trivial types,
440
+ /// and will trap if this precondition is not met.
440
441
/// A trivial type does not contain any reference-counted property
441
442
/// within its in-memory representation.
442
443
/// The memory at this pointer plus `offset` must be laid out
@@ -1160,7 +1161,8 @@ public struct UnsafeMutableRawPointer: _Pointer {
1160
1161
/// Returns a new instance of the given type, constructed from the raw memory
1161
1162
/// at the specified offset.
1162
1163
///
1163
- /// This function only supports loading trivial types.
1164
+ /// This function only supports loading trivial types,
1165
+ /// and will trap if this precondition is not met.
1164
1166
/// A trivial type does not contain any reference-counted property
1165
1167
/// within its in-memory representation.
1166
1168
/// The memory at this pointer plus `offset` must be laid out
You can’t perform that action at this time.
0 commit comments