Skip to content

Commit 6f5e96f

Browse files
committed
docs: Rewrap slice::strip_prefix and strip_suffix back to 100
Requested-by: @LukasKalbertodt Signed-off-by: Ian Jackson <[email protected]>
1 parent 4549c77 commit 6f5e96f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/core/src/slice/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1703,8 +1703,7 @@ impl<T> [T] {
17031703

17041704
/// Returns a subslice with the prefix removed.
17051705
///
1706-
/// If the slice starts with `prefix`, returns
1707-
/// the subslice after the prefix, wrapped in `Some`.
1706+
/// If the slice starts with `prefix`, returns the subslice after the prefix, wrapped in `Some`.
17081707
///
17091708
/// If the slice does not start with `prefix`, returns `None`.
17101709
///
@@ -1738,8 +1737,7 @@ impl<T> [T] {
17381737

17391738
/// Returns a subslice with the suffix removed.
17401739
///
1741-
/// If the slice ends with `suffix`, returns
1742-
/// the subslice before the suffix, wrapped in `Some`.
1740+
/// If the slice ends with `suffix`, returns the subslice before the suffix, wrapped in `Some`.
17431741
///
17441742
/// If the slice does not end with `suffix`, returns `None`.
17451743
///

0 commit comments

Comments
 (0)