Skip to content

Commit 346920c

Browse files
committed
Fixed issue 68593
1 parent 5371ddf commit 346920c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/liballoc/boxed.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//!
33
//! [`Box<T>`], casually referred to as a 'box', provides the simplest form of
44
//! heap allocation in Rust. Boxes provide ownership for this allocation, and
5-
//! drop their contents when they go out of scope.
5+
//! drop their contents when they go out of scope. Boxes also ensure that they
6+
//! never allocate more than `isize::MAX` bytes.
67
//!
78
//! # Examples
89
//!

src/liballoc/vec.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
55
//! `O(1)` pop (from the end).
66
//!
7+
//! Vectors ensure they never allocate more than `isize::MAX` bytes.
8+
//!
79
//! # Examples
810
//!
911
//! You can explicitly create a [`Vec<T>`] with [`new`]:

0 commit comments

Comments
 (0)