diff options
| author | Brian Quinlan <brian@sweetapp.com> | 2015-05-22 10:26:18 -0700 |
|---|---|---|
| committer | Brian Quinlan <brian@sweetapp.com> | 2015-05-22 10:26:18 -0700 |
| commit | 7389b0abc212297bfc9727c8e7c8f9a523bb14bb (patch) | |
| tree | f56b6a478ba12d66a51b82e4ca9c0653a8bbfc6e /src | |
| parent | c3d60aba6c86883c79055c1a3923d4db116b644e (diff) | |
| download | rust-7389b0abc212297bfc9727c8e7c8f9a523bb14bb.tar.gz rust-7389b0abc212297bfc9727c8e7c8f9a523bb14bb.zip | |
Make it clear that push is only amortized O(1)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcollections/vec.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 5ec71b7353c..84fe5ba1fbf 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -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 //! |
