File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ impl fmt::Display for CannotReallocInPlace {
420420/// }
421421/// ```
422422///
423- /// # Unsafety
423+ /// # Safety
424424///
425425/// The `GlobalAlloc` trait is an `unsafe` trait for a number of reasons, and
426426/// implementors must ensure that they adhere to these contracts:
@@ -643,7 +643,7 @@ pub unsafe trait GlobalAlloc {
643643/// currently allocated via an allocator `a`, then it is legal to
644644/// use that layout to deallocate it, i.e., `a.dealloc(ptr, k);`.
645645///
646- /// # Unsafety
646+ /// # Safety
647647///
648648/// The `Alloc` trait is an `unsafe` trait for a number of reasons, and
649649/// implementors must ensure that they adhere to these contracts:
Original file line number Diff line number Diff line change @@ -1173,7 +1173,7 @@ impl<T> MaybeUninit<T> {
11731173 /// to ensure that the data will get dropped, because the resulting `T` is
11741174 /// subject to the usual drop handling.
11751175 ///
1176- /// # Unsafety
1176+ /// # Safety
11771177 ///
11781178 /// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
11791179 /// state. Calling this when the content is not yet fully initialized causes undefined
@@ -1187,7 +1187,7 @@ impl<T> MaybeUninit<T> {
11871187
11881188 /// Gets a reference to the contained value.
11891189 ///
1190- /// # Unsafety
1190+ /// # Safety
11911191 ///
11921192 /// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
11931193 /// state. Calling this when the content is not yet fully initialized causes undefined
@@ -1200,7 +1200,7 @@ impl<T> MaybeUninit<T> {
12001200
12011201 /// Gets a mutable reference to the contained value.
12021202 ///
1203- /// # Unsafety
1203+ /// # Safety
12041204 ///
12051205 /// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
12061206 /// state. Calling this when the content is not yet fully initialized causes undefined
Original file line number Diff line number Diff line change @@ -2158,7 +2158,7 @@ impl<T> [T] {
21582158 /// This method has no purpose when either input element `T` or output element `U` are
21592159 /// zero-sized and will return the original slice without splitting anything.
21602160 ///
2161- /// # Unsafety
2161+ /// # Safety
21622162 ///
21632163 /// This method is essentially a `transmute` with respect to the elements in the returned
21642164 /// middle slice, so all the usual caveats pertaining to `transmute::<T, U>` also apply here.
@@ -2211,7 +2211,7 @@ impl<T> [T] {
22112211 /// This method has no purpose when either input element `T` or output element `U` are
22122212 /// zero-sized and will return the original slice without splitting anything.
22132213 ///
2214- /// # Unsafety
2214+ /// # Safety
22152215 ///
22162216 /// This method is essentially a `transmute` with respect to the elements in the returned
22172217 /// middle slice, so all the usual caveats pertaining to `transmute::<T, U>` also apply here.
You can’t perform that action at this time.
0 commit comments