From bd9c18125fb4c4e7b33408edb22dadf9ee73c449 Mon Sep 17 00:00:00 2001 From: gamazeps Date: Thu, 30 Oct 2014 19:00:47 +0100 Subject: [PATCH] Doc: Clears up trim_char doc Closes #18451 --- src/libcore/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/str.rs b/src/libcore/str.rs index e8cd93ba7dc..d42d2006cff 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -1535,7 +1535,7 @@ pub trait StrSlice<'a> { /// ``` fn ends_with(&self, needle: &str) -> bool; - /// Returns a string with characters that match `to_trim` removed. + /// Returns a string with characters that match `to_trim` removed from the left and the right. /// /// # Arguments ///