Skip to content

Commit a8efc51

Browse files
committed
♻️ refactor: reword
1 parent 375f6fe commit a8efc51

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

library/alloc/src/collections/vec_deque/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,8 @@ impl<T, A: Allocator> VecDeque<T, A> {
14581458
///
14591459
/// # Panics
14601460
///
1461-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
1462-
/// bounded and greater than the length of the deque.
1461+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
1462+
/// bounded on either end and past the length of the dequeue.
14631463
///
14641464
/// # Examples
14651465
///
@@ -1494,8 +1494,8 @@ impl<T, A: Allocator> VecDeque<T, A> {
14941494
///
14951495
/// # Panics
14961496
///
1497-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
1498-
/// bounded and greater than the length of the deque.
1497+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
1498+
/// bounded on either end and past the length of the dequeue.
14991499
///
15001500
/// # Examples
15011501
///
@@ -1540,8 +1540,8 @@ impl<T, A: Allocator> VecDeque<T, A> {
15401540
///
15411541
/// # Panics
15421542
///
1543-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
1544-
/// bounded and greater than the length of the deque.
1543+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
1544+
/// bounded on either end and past the length of the dequeue.
15451545
///
15461546
/// # Leaking
15471547
///

library/alloc/src/string.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,8 @@ impl String {
11161116
///
11171117
/// # Panics
11181118
///
1119-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
1120-
/// bounded and does not lie on a [`char`] boundary.
1119+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
1120+
/// bounded on either end and does not lie on a [`char`] boundary.
11211121
///
11221122
/// # Examples
11231123
///
@@ -1920,8 +1920,8 @@ impl String {
19201920
///
19211921
/// # Panics
19221922
///
1923-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
1924-
/// bounded and does not lie on a [`char`] boundary.
1923+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
1924+
/// bounded on either end and does not lie on a [`char`] boundary.
19251925
///
19261926
/// # Leaking
19271927
///
@@ -2030,8 +2030,8 @@ impl String {
20302030
///
20312031
/// # Panics
20322032
///
2033-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
2034-
/// bounded and does not lie on a [`char`] boundary.
2033+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
2034+
/// bounded on either end and does not lie on a [`char`] boundary.
20352035
///
20362036
/// # Examples
20372037
///

library/alloc/src/vec/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,8 +2606,8 @@ impl<T, A: Allocator> Vec<T, A> {
26062606
///
26072607
/// # Panics
26082608
///
2609-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
2610-
/// bounded and greater than the length of the vector.
2609+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
2610+
/// bounded on either end and past the length of the vector.
26112611
///
26122612
/// # Leaking
26132613
///
@@ -3615,8 +3615,8 @@ impl<T, A: Allocator> Vec<T, A> {
36153615
///
36163616
/// # Panics
36173617
///
3618-
/// Panics if the range has `start_bound > end_bound`, or, a range bound is
3619-
/// bounded and greater than the length of the vector.
3618+
/// Panics if the range has `start_bound > end_bound`, or, if the range is
3619+
/// bounded on either end and past the length of the vector.
36203620
///
36213621
/// # Examples
36223622
///

0 commit comments

Comments
 (0)