about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMahmut Bulut <mahmutbulut0@gmail.com>2012-10-15 23:53:16 +0300
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-19 11:59:40 -0700
commit81e66ae1fbc8e76a21c78d6c0aeab9119263dfee (patch)
treef04892b2a5e837703e6b6f819b93bc4a678f8589
parent8492a029e8741d80489a6c8d0e673927ead95b7c (diff)
downloadrust-81e66ae1fbc8e76a21c78d6c0aeab9119263dfee.tar.gz
rust-81e66ae1fbc8e76a21c78d6c0aeab9119263dfee.zip
Renaming trait name UniqueStr to Trimmable
-rw-r--r--src/libcore/core.rs2
-rw-r--r--src/libcore/str.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/core.rs b/src/libcore/core.rs
index 5ef11a4ad46..35131e561d9 100644
--- a/src/libcore/core.rs
+++ b/src/libcore/core.rs
@@ -12,7 +12,7 @@ pub use WindowsPath = path::WindowsPath;
 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};
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index 3da41ac6abc..0c722c437ee 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -2075,14 +2075,14 @@ pub mod raw {
 
 }
 
-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) }