Skip to content

Commit 79603f5

Browse files
committed
libcore: include the trim methods in the StrSlice trait
1 parent bb1ed97 commit 79603f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/str.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,9 @@ pub trait StrSlice {
20862086
pure fn to_upper() -> ~str;
20872087
fn escape_default() -> ~str;
20882088
fn escape_unicode() -> ~str;
2089+
fn trim() -> ~str;
2090+
fn trim_left() -> ~str;
2091+
fn trim_right() -> ~str;
20892092
pure fn to_unique() -> ~str;
20902093
pure fn char_at(i: uint) -> char;
20912094
}

0 commit comments

Comments
 (0)