@@ -348,11 +348,11 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
348348///
349349/// - If `T` is `Sized`, this function is always safe to call.
350350/// - 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
352352/// integer, and the size of the *entire value*
353353/// (dynamic tail length + statically sized prefix) must fit in `isize`.
354354/// - 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
356356/// of the *entire value* (dynamic tail length + statically sized prefix)
357357/// must fit in `isize`.
358358/// - 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 {
483483///
484484/// - If `T` is `Sized`, this function is always safe to call.
485485/// - 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
487487/// integer, and the size of the *entire value*
488488/// (dynamic tail length + statically sized prefix) must fit in `isize`.
489489/// - 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
491491/// of the *entire value* (dynamic tail length + statically sized prefix)
492492/// must fit in `isize`.
493493/// - an (unstable) [extern type], then this function is always safe to
0 commit comments