]> git.lizzy.rs Git - rust.git/commitdiff
Renaming trait name UniqueStr to Trimmable
authorMahmut Bulut <mahmutbulut0@gmail.com>
Mon, 15 Oct 2012 20:53:16 +0000 (23:53 +0300)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 19 Oct 2012 18:59:40 +0000 (11:59 -0700)
src/libcore/core.rs
src/libcore/str.rs

index 5ef11a4ad464841047dec465a2224b85a1ac9dbd..35131e561d95357bfe767ce3c41e0ebca11f07a5 100644 (file)
@@ -12,7 +12,7 @@
 pub use PosixPath = path::PosixPath;
 
 pub use tuple::{CopyableTuple, ImmutableTuple, ExtendedTupleOps};
-pub use str::{StrSlice, UniqueStr};
+pub use str::{StrSlice, Trimmable};
 pub use vec::{ConstVector, CopyableVector, ImmutableVector};
 pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
 pub use vec::{MutableVector, MutableCopyableVector};
index 3da41ac6abc87220b230b3aada8e99995cef0d3e..0c722c437ee58a46f3be60a749752056cff78294 100644 (file)
@@ -2075,14 +2075,14 @@ fn test_from_buf_len() {
 
 }
 
-pub trait UniqueStr {
+pub trait Trimmable {
     pure fn trim() -> self;
     pure fn trim_left() -> self;
     pure fn trim_right() -> self;
 }
 
 /// Extension methods for strings
-impl ~str: UniqueStr {
+impl ~str: Trimmable {
     /// Returns a string with leading and trailing whitespace removed
     #[inline]
     pure fn trim() -> ~str { trim(self) }