Skip to content

Commit a151982

Browse files
committed
Add doc comment for impl From<LayoutError> for TryReserveError
1 parent 8649737 commit a151982

File tree

1 file changed

+1
-0
lines changed
  • library/alloc/src/collections

1 file changed

+1
-0
lines changed

library/alloc/src/collections/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub enum TryReserveError {
8383

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

0 commit comments

Comments
 (0)