Make it clear that push is only amortized O(1)
This commit is contained in:
parent
c3d60aba6c
commit
7389b0abc2
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,8 @@
|
|||
//! A growable list type with heap-allocated contents, written `Vec<T>` but
|
||||
//! pronounced 'vector.'
|
||||
//!
|
||||
//! Vectors have `O(1)` indexing, push (to the end) and pop (from the end).
|
||||
//! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
|
||||
//! `O(1)` pop (from the end).
|
||||
//!
|
||||
//! # Examples
|
||||
//!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue