diff options
| author | Mahmut Bulut <mahmutbulut0@gmail.com> | 2012-10-15 23:53:16 +0300 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-19 11:59:40 -0700 |
| commit | 81e66ae1fbc8e76a21c78d6c0aeab9119263dfee (patch) | |
| tree | f04892b2a5e837703e6b6f819b93bc4a678f8589 | |
| parent | 8492a029e8741d80489a6c8d0e673927ead95b7c (diff) | |
| download | rust-81e66ae1fbc8e76a21c78d6c0aeab9119263dfee.tar.gz rust-81e66ae1fbc8e76a21c78d6c0aeab9119263dfee.zip | |
Renaming trait name UniqueStr to Trimmable
| -rw-r--r-- | src/libcore/core.rs | 2 | ||||
| -rw-r--r-- | src/libcore/str.rs | 4 |
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) } |
