@@ -348,11 +348,11 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
348
348
///
349
349
/// - If `T` is `Sized`, this function is always safe to call.
350
350
/// - If the unsized tail of `T` is:
351
- /// - a [slice], then the length of the slice tail must be an intialized
351
+ /// - a [slice], then the length of the slice tail must be an initialized
352
352
/// integer, and the size of the *entire value*
353
353
/// (dynamic tail length + statically sized prefix) must fit in `isize`.
354
354
/// - a [trait object], then the vtable part of the pointer must point
355
- /// to a valid vtable acquired by an unsizing coersion , and the size
355
+ /// to a valid vtable acquired by an unsizing coercion , and the size
356
356
/// of the *entire value* (dynamic tail length + statically sized prefix)
357
357
/// must fit in `isize`.
358
358
/// - an (unstable) [extern type], then this function is always safe to
@@ -483,11 +483,11 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
483
483
///
484
484
/// - If `T` is `Sized`, this function is always safe to call.
485
485
/// - If the unsized tail of `T` is:
486
- /// - a [slice], then the length of the slice tail must be an intialized
486
+ /// - a [slice], then the length of the slice tail must be an initialized
487
487
/// integer, and the size of the *entire value*
488
488
/// (dynamic tail length + statically sized prefix) must fit in `isize`.
489
489
/// - a [trait object], then the vtable part of the pointer must point
490
- /// to a valid vtable acquired by an unsizing coersion , and the size
490
+ /// to a valid vtable acquired by an unsizing coercion , and the size
491
491
/// of the *entire value* (dynamic tail length + statically sized prefix)
492
492
/// must fit in `isize`.
493
493
/// - an (unstable) [extern type], then this function is always safe to
0 commit comments