File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -192,11 +192,8 @@ extern "rust-intrinsic" {
192
192
193
193
/// The size of a type in bytes.
194
194
///
195
- /// This is the exact number of bytes in memory taken up by a
196
- /// value of the given type. In other words, a memset of this size
197
- /// would *exactly* overwrite a value. When laid out in vectors
198
- /// and structures there may be additional padding between
199
- /// elements.
195
+ /// More specifically, this is the offset in bytes between successive
196
+ /// items of the same type, including alignment padding.
200
197
pub fn size_of < T > ( ) -> usize ;
201
198
202
199
/// Moves a value to an uninitialized memory location.
Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ pub fn forget<T>(t: T) {
117
117
118
118
/// Returns the size of a type in bytes.
119
119
///
120
+ /// More specifically, this is the offset in bytes between successive
121
+ /// items of the same type, including alignment padding.
122
+ ///
120
123
/// # Examples
121
124
///
122
125
/// ```
You can’t perform that action at this time.
0 commit comments