Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKalbertodt committed Sep 26, 2018
1 parent beddfdf commit de7a40b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,9 @@ impl<T> StableVec<T> {

/// Removes all elements from this collection.
///
/// After calling this, `num_elements()` will return 0. However, no memory
/// is deallocated, so the capacity stays as it was before.
/// After calling this, `num_elements()` will return 0. All indices are
/// invalidated. However, no memory is deallocated, so the capacity stays
/// as it was before.
///
/// # Example
///
Expand Down

0 comments on commit de7a40b

Please sign in to comment.