File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1704,11 +1704,10 @@ impl<T> [T] {
1704
1704
/// Returns a subslice with the prefix removed.
1705
1705
///
1706
1706
/// If the slice starts with `prefix`, returns the subslice after the prefix, wrapped in `Some`.
1707
+ /// If `prefix` is empty, simply returns the original slice.
1707
1708
///
1708
1709
/// If the slice does not start with `prefix`, returns `None`.
1709
1710
///
1710
- /// (If `prefix` is empty, simply returns the original slice.)
1711
- ///
1712
1711
/// # Examples
1713
1712
///
1714
1713
/// ```
@@ -1738,11 +1737,10 @@ impl<T> [T] {
1738
1737
/// Returns a subslice with the suffix removed.
1739
1738
///
1740
1739
/// If the slice ends with `suffix`, returns the subslice before the suffix, wrapped in `Some`.
1740
+ /// If `suffix` is empty, simply returns the original slice.
1741
1741
///
1742
1742
/// If the slice does not end with `suffix`, returns `None`.
1743
1743
///
1744
- /// (If `suffix` is empty, simply returns the original slice.)
1745
- ///
1746
1744
/// # Examples
1747
1745
///
1748
1746
/// ```
You can’t perform that action at this time.
0 commit comments