diff options
| author | Jeremy Smart <jeremy3141592@gmail.com> | 2025-06-11 22:57:57 -0400 |
|---|---|---|
| committer | Jeremy Smart <jeremy3141592@gmail.com> | 2025-06-11 22:57:57 -0400 |
| commit | 9d19cbe29ba9609db1cf2332f5aa343a28a0e8dd (patch) | |
| tree | cc67403f309b4303ea1a156529aed974a29cb2dc /library/alloc/src/vec/mod.rs | |
| parent | 6469eb1c28bd6fd5fbc94cec1828fc69b00421d5 (diff) | |
| download | rust-9d19cbe29ba9609db1cf2332f5aa343a28a0e8dd.tar.gz rust-9d19cbe29ba9609db1cf2332f5aa343a28a0e8dd.zip | |
update docs, test
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 96d082aba22..5bd82560da7 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -735,13 +735,9 @@ impl<T> Vec<T> { unsafe { Self::from_parts_in(ptr, length, capacity, Global) } } - /// Returns a mutable reference to the greatest item in the binary heap, or + /// Returns a mutable reference to the last item in the vector, or /// `None` if it is empty. /// - /// Note: If the `PeekMut` value is leaked, some heap elements might get - /// leaked along with it, but the remaining elements will remain a valid - /// heap. - /// /// # Examples /// /// Basic usage: |
