about summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
authorhman523 <shbarbella@gmail.com>2020-01-31 13:41:07 -0600
committerhman523 <shbarbella@gmail.com>2020-01-31 13:41:07 -0600
commit346920c3c844e650aff6428c6b5c6e70cbce9954 (patch)
treedee59aa5311b94749bfa434860af51d3ae8c138d /src/liballoc/vec.rs
parent5371ddf8c6937e90ffb279c24ac3e79d17833399 (diff)
downloadrust-346920c3c844e650aff6428c6b5c6e70cbce9954.tar.gz
rust-346920c3c844e650aff6428c6b5c6e70cbce9954.zip
Fixed issue 68593
Diffstat (limited to 'src/liballoc/vec.rs')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 26a7812f58e..4f6b7870e2e 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -4,6 +4,8 @@
 //! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
 //! `O(1)` pop (from the end).
 //!
+//! Vectors ensure they never allocate more than `isize::MAX` bytes.
+//!
 //! # Examples
 //!
 //! You can explicitly create a [`Vec<T>`] with [`new`]: