Skip to content

Commit 81e66ae

Browse files
vertexcliquecatamorphism
authored andcommitted
Renaming trait name UniqueStr to Trimmable
1 parent 8492a02 commit 81e66ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: 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};

Diff for: src/libcore/str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2075,14 +2075,14 @@ pub mod raw {
20752075

20762076
}
20772077

2078-
pub trait UniqueStr {
2078+
pub trait Trimmable {
20792079
pure fn trim() -> self;
20802080
pure fn trim_left() -> self;
20812081
pure fn trim_right() -> self;
20822082
}
20832083

20842084
/// Extension methods for strings
2085-
impl ~str: UniqueStr {
2085+
impl ~str: Trimmable {
20862086
/// Returns a string with leading and trailing whitespace removed
20872087
#[inline]
20882088
pure fn trim() -> ~str { trim(self) }

0 commit comments

Comments
 (0)