Skip to content

Commit fae9957

Browse files
committed
---
yaml --- r: 23757 b: refs/heads/master c: f6d50d8 h: refs/heads/master i: 23755: f63e281 v: v3
1 parent a95b4fc commit fae9957

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d1554106742fa8c0a99cac1adc5f65aa0ce0ac62
2+
refs/heads/master: f6d50d866a5f067d292875193ae5f30a756e6ad3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,8 +2160,8 @@ trait StrSlice {
21602160
fn split_str(sep: &a/str) -> ~[~str];
21612161
fn starts_with(needle: &a/str) -> bool;
21622162
fn substr(begin: uint, n: uint) -> ~str;
2163-
fn to_lower() -> ~str;
2164-
fn to_upper() -> ~str;
2163+
pure fn to_lower() -> ~str;
2164+
pure fn to_upper() -> ~str;
21652165
fn escape_default() -> ~str;
21662166
fn escape_unicode() -> ~str;
21672167
pure fn to_unique() -> ~str;
@@ -2262,10 +2262,10 @@ impl &str: StrSlice {
22622262
fn substr(begin: uint, n: uint) -> ~str { substr(self, begin, n) }
22632263
/// Convert a string to lowercase
22642264
#[inline]
2265-
fn to_lower() -> ~str { to_lower(self) }
2265+
pure fn to_lower() -> ~str { to_lower(self) }
22662266
/// Convert a string to uppercase
22672267
#[inline]
2268-
fn to_upper() -> ~str { to_upper(self) }
2268+
pure fn to_upper() -> ~str { to_upper(self) }
22692269
/// Escape each char in `s` with char::escape_default.
22702270
#[inline]
22712271
fn escape_default() -> ~str { escape_default(self) }

0 commit comments

Comments
 (0)