Skip to content

Commit

Permalink
Add doc comment for impl From<LayoutError> for TryReserveError
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Jul 6, 2021
1 parent 8649737 commit a151982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ pub enum TryReserveError {

#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
impl From<LayoutError> for TryReserveError {
/// Always evaluates to [`TryReserveError::CapacityOverflow`].
#[inline]
fn from(_: LayoutError) -> Self {
TryReserveError::CapacityOverflow
Expand Down

0 comments on commit a151982

Please sign in to comment.