diff options
| author | Venus Xeon-Blonde <alfriadox@gmail.com> | 2024-02-07 23:37:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 23:37:34 -0500 |
| commit | 8ff1994ec06a0bc4d8f80ecbefe981013b902a9b (patch) | |
| tree | aec1fe0784e0a03892ff70e7abe5886ffca5956c | |
| parent | f0c6f5a7feb0a2d14a68133c050ec5d56902f961 (diff) | |
| download | rust-8ff1994ec06a0bc4d8f80ecbefe981013b902a9b.tar.gz rust-8ff1994ec06a0bc4d8f80ecbefe981013b902a9b.zip | |
Fix whitespace issues that tidy caught
| -rw-r--r-- | library/core/src/str/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index b90f34360f6..597d924469c 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -1161,7 +1161,7 @@ impl str { /// function or closure that determines if a character matches. /// /// Note that there is a footgun to this method when using a slice of [`char`]s. - /// Some users may expect that a slice of chars will behave similarly to a `&str` with this method. + /// Some users may expect that a slice of chars will behave similarly to a `&str` with this method. /// That is not currently the case. When you pass a slice of [`char`]s to this method, it will return true /// if any of the [`char`]s in the slice is the first [`char`] of this string slice. It does not work for /// sequentially comparing a slice of [`char`]s to a string slice. See the second example below. @@ -1177,11 +1177,11 @@ impl str { /// assert!(bananas.starts_with("bana")); /// assert!(!bananas.starts_with("nana")); /// ``` - /// + /// /// ``` /// let bananas = "bananas"; - /// - /// // Note that both of these assert successfully. + /// + /// // Note that both of these assert successfully. /// assert!(bananas.starts_with(&['b', 'a', 'n', 'a'])); /// assert!(bananas.starts_with(&['a', 'b', 'c', 'd'])); /// ``` |
