Skip to content

Commit bd9c181

Browse files
committed
Doc: Clears up trim_char doc
Closes #18451
1 parent 00cc6d2 commit bd9c181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ pub trait StrSlice<'a> {
15351535
/// ```
15361536
fn ends_with(&self, needle: &str) -> bool;
15371537

1538-
/// Returns a string with characters that match `to_trim` removed.
1538+
/// Returns a string with characters that match `to_trim` removed from the left and the right.
15391539
///
15401540
/// # Arguments
15411541
///

0 commit comments

Comments
 (0)