Skip to content

Commit

Permalink
Update library/core/src/mem/mod.rs
Browse files Browse the repository at this point in the history
Apply suggestions from code review.

Co-authored-by: kennytm <kennytm@gmail.com>
  • Loading branch information
scottmcm and kennytm authored Mar 28, 2022
1 parent 3563842 commit d93599e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ pub unsafe fn uninitialized<T>() -> T {
}
}

/// Create a fresh instance of the inhabited ZST type `T`.
/// Create a fresh instance of the inhabited zero-sized type `T`.
///
/// Prefer this to [`zeroed`] or [`uninitialized`] or [`transmute_copy`]
/// in places where you know that `T` is zero-sized, but don't have a bound
Expand Down

0 comments on commit d93599e

Please sign in to comment.