@@ -110,7 +110,7 @@ impl Layout {
110110
111111 /// Creates a layout, bypassing all checks.
112112 ///
113- /// # Unsafety
113+ /// # Safety
114114 ///
115115 /// This function is unsafe as it does not verify that `align` is
116116 /// a power-of-two that is also less than or equal to 2^31, nor
@@ -485,7 +485,7 @@ pub unsafe trait Alloc {
485485 /// behavior, e.g. to ensure initialization to particular sets of
486486 /// bit patterns.)
487487 ///
488- /// # Unsafety
488+ /// # Safety
489489 ///
490490 /// This function is unsafe because undefined behavior can result
491491 /// if the caller does not ensure that `layout` has non-zero size.
@@ -513,7 +513,7 @@ pub unsafe trait Alloc {
513513
514514 /// Deallocate the memory referenced by `ptr`.
515515 ///
516- /// # Unsafety
516+ /// # Safety
517517 ///
518518 /// This function is unsafe because undefined behavior can result
519519 /// if the caller does not ensure all of the following:
@@ -617,7 +617,7 @@ pub unsafe trait Alloc {
617617 /// behavior is well-defined (though underspecified) when this
618618 /// constraint is violated; further discussion below.
619619 ///
620- /// # Unsafety
620+ /// # Safety
621621 ///
622622 /// This function is unsafe because undefined behavior can result
623623 /// if the caller does not ensure all of the following:
@@ -688,7 +688,7 @@ pub unsafe trait Alloc {
688688 /// Behaves like `alloc`, but also ensures that the contents
689689 /// are set to zero before being returned.
690690 ///
691- /// # Unsafety
691+ /// # Safety
692692 ///
693693 /// This function is unsafe for the same reasons that `alloc` is.
694694 ///
@@ -714,7 +714,7 @@ pub unsafe trait Alloc {
714714 /// the returned block. For some `layout` inputs, like arrays, this
715715 /// may include extra storage usable for additional data.
716716 ///
717- /// # Unsafety
717+ /// # Safety
718718 ///
719719 /// This function is unsafe for the same reasons that `alloc` is.
720720 ///
@@ -736,7 +736,7 @@ pub unsafe trait Alloc {
736736 /// the returned block. For some `layout` inputs, like arrays, this
737737 /// may include extra storage usable for additional data.
738738 ///
739- /// # Unsafety
739+ /// # Safety
740740 ///
741741 /// This function is unsafe for the same reasons that `realloc` is.
742742 ///
@@ -770,7 +770,7 @@ pub unsafe trait Alloc {
770770 /// memory block referenced by `ptr` has not been transferred, and
771771 /// the contents of the memory block are unaltered.
772772 ///
773- /// # Unsafety
773+ /// # Safety
774774 ///
775775 /// This function is unsafe because undefined behavior can result
776776 /// if the caller does not ensure all of the following:
@@ -827,7 +827,7 @@ pub unsafe trait Alloc {
827827 /// the memory block has not been transferred, and the contents of
828828 /// the memory block are unaltered.
829829 ///
830- /// # Unsafety
830+ /// # Safety
831831 ///
832832 /// This function is unsafe because undefined behavior can result
833833 /// if the caller does not ensure all of the following:
@@ -920,7 +920,7 @@ pub unsafe trait Alloc {
920920 ///
921921 /// Captures a common usage pattern for allocators.
922922 ///
923- /// # Unsafety
923+ /// # Safety
924924 ///
925925 /// This function is unsafe because undefined behavior can result
926926 /// if the caller does not ensure both:
@@ -993,7 +993,7 @@ pub unsafe trait Alloc {
993993 /// The returned block is suitable for passing to the
994994 /// `alloc`/`realloc` methods of this allocator.
995995 ///
996- /// # Unsafety
996+ /// # Safety
997997 ///
998998 /// This function is unsafe because undefined behavior can result
999999 /// if the caller does not ensure all of the following:
@@ -1037,7 +1037,7 @@ pub unsafe trait Alloc {
10371037 ///
10381038 /// Captures a common usage pattern for allocators.
10391039 ///
1040- /// # Unsafety
1040+ /// # Safety
10411041 ///
10421042 /// This function is unsafe because undefined behavior can result
10431043 /// if the caller does not ensure both:
0 commit comments