about summary refs log tree commit diff
path: root/library/alloc/src/vec/mod.rs
diff options
context:
space:
mode:
authortk <49250442+tkr-sh@users.noreply.github.com>2025-05-14 00:54:47 +0200
committertk <49250442+tkr-sh@users.noreply.github.com>2025-09-20 10:17:56 +0000
commitac3c480388d27ee9ebeb23d308bd37289d37bc41 (patch)
tree61df709828b8b7c0098f678a8eccd21aa5822bc6 /library/alloc/src/vec/mod.rs
parente4b521903b3b1a671e26a70b9475bcff385767e5 (diff)
downloadrust-ac3c480388d27ee9ebeb23d308bd37289d37bc41.tar.gz
rust-ac3c480388d27ee9ebeb23d308bd37289d37bc41.zip
docs: improve doc of some methods w/ ranges
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
-rw-r--r--library/alloc/src/vec/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 1b80b43abc3..10c7ee4f6c8 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -2796,8 +2796,8 @@ impl<T, A: Allocator> Vec<T, A> {
     ///
     /// # Panics
     ///
-    /// Panics if the starting point is greater than the end point or if
-    /// the end point is greater than the length of the vector.
+    /// Panics if the range has `start_bound > end_bound`, or, if the range is
+    /// bounded on either end and past the length of the vector.
     ///
     /// # Leaking
     ///
@@ -3860,8 +3860,8 @@ impl<T, A: Allocator> Vec<T, A> {
     ///
     /// # Panics
     ///
-    /// Panics if the starting point is greater than the end point or if
-    /// the end point is greater than the length of the vector.
+    /// Panics if the range has `start_bound > end_bound`, or, if the range is
+    /// bounded on either end and past the length of the vector.
     ///
     /// # Examples
     ///