Fixed issue 68593
This commit is contained in:
parent
5371ddf8c6
commit
346920c3c8
@ -2,7 +2,8 @@
|
|||||||
//!
|
//!
|
||||||
//! [`Box<T>`], casually referred to as a 'box', provides the simplest form of
|
//! [`Box<T>`], casually referred to as a 'box', provides the simplest form of
|
||||||
//! heap allocation in Rust. Boxes provide ownership for this allocation, and
|
//! heap allocation in Rust. Boxes provide ownership for this allocation, and
|
||||||
//! drop their contents when they go out of scope.
|
//! drop their contents when they go out of scope. Boxes also ensure that they
|
||||||
|
//! never allocate more than `isize::MAX` bytes.
|
||||||
//!
|
//!
|
||||||
//! # Examples
|
//! # Examples
|
||||||
//!
|
//!
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
//! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
|
//! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
|
||||||
//! `O(1)` pop (from the end).
|
//! `O(1)` pop (from the end).
|
||||||
//!
|
//!
|
||||||
|
//! Vectors ensure they never allocate more than `isize::MAX` bytes.
|
||||||
|
//!
|
||||||
//! # Examples
|
//! # Examples
|
||||||
//!
|
//!
|
||||||
//! You can explicitly create a [`Vec<T>`] with [`new`]:
|
//! You can explicitly create a [`Vec<T>`] with [`new`]:
|
||||||
|
Loading…
Reference in New Issue
Block a user