Skip to content

Commit

Permalink
Renaming trait name UniqueStr to Trimmable
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique authored and catamorphism committed Oct 19, 2012
1 parent 8492a02 commit 81e66ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libcore/core.rs
Expand Up @@ -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};
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/str.rs
Expand Up @@ -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) }
Expand Down

0 comments on commit 81e66ae

Please sign in to comment.