diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-10-12 12:45:05 +0100 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-10-12 14:48:17 +0100 |
| commit | 6f5e96fb5fcd7fb6c67c61027615abd96a9e5e69 (patch) | |
| tree | 9c9f6012d61eb74ae4b94ac088a4000562f07dad | |
| parent | 4549c777e690c69552dea2f2ea04c56074430546 (diff) | |
docs: Rewrap `slice::strip_prefix` and `strip_suffix` back to 100
Requested-by: @LukasKalbertodt Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
| -rw-r--r-- | library/core/src/slice/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 1dfe899d3e5..1282bb54f00 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -1703,8 +1703,7 @@ impl<T> [T] { /// Returns a subslice with the prefix removed. /// - /// If the slice starts with `prefix`, returns - /// the subslice after the prefix, wrapped in `Some`. + /// If the slice starts with `prefix`, returns the subslice after the prefix, wrapped in `Some`. /// /// If the slice does not start with `prefix`, returns `None`. /// @@ -1738,8 +1737,7 @@ impl<T> [T] { /// Returns a subslice with the suffix removed. /// - /// If the slice ends with `suffix`, returns - /// the subslice before the suffix, wrapped in `Some`. + /// If the slice ends with `suffix`, returns the subslice before the suffix, wrapped in `Some`. /// /// If the slice does not end with `suffix`, returns `None`. /// |
