Skip to content

Commit 629221f

Browse files
committed
Renaming trait name UniqueStr to Trimmable
1 parent 2aa1870 commit 629221f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libcore/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub use WindowsPath = path::WindowsPath;
1212
pub use PosixPath = path::PosixPath;
1313

1414
pub use tuple::{CopyableTuple, ImmutableTuple, ExtendedTupleOps};
15-
pub use str::{StrSlice, UniqueStr};
15+
pub use str::{StrSlice, Trimmable};
1616
pub use vec::{ConstVector, CopyableVector, ImmutableVector};
1717
pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
1818
pub use vec::{MutableVector, MutableCopyableVector};

src/libcore/str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2029,14 +2029,14 @@ pub mod raw {
20292029

20302030
}
20312031

2032-
pub trait UniqueStr {
2032+
pub trait Trimmable {
20332033
pure fn trim() -> self;
20342034
pure fn trim_left() -> self;
20352035
pure fn trim_right() -> self;
20362036
}
20372037

20382038
/// Extension methods for strings
2039-
impl ~str: UniqueStr {
2039+
impl ~str: Trimmable {
20402040
/// Returns a string with leading and trailing whitespace removed
20412041
#[inline]
20422042
pure fn trim() -> ~str { trim(self) }

0 commit comments

Comments
 (0)