From 81e66ae1fbc8e76a21c78d6c0aeab9119263dfee Mon Sep 17 00:00:00 2001 From: Mahmut Bulut Date: Mon, 15 Oct 2012 23:53:16 +0300 Subject: [PATCH] Renaming trait name UniqueStr to Trimmable --- src/libcore/core.rs | 2 +- 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 5ef11a4ad4648..35131e561d953 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 3da41ac6abc87..0c722c437ee58 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) }