diff options
| author | Lenny222 <github@kudling.de> | 2012-01-02 21:29:44 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-04 09:33:04 +0100 |
| commit | dd284eb396d802646106bdb15f474ebc10a9dfbb (patch) | |
| tree | b9dadd471034fc5d1fe0619e5bd8ec9d9612996c /src/libcore/str.rs | |
| parent | e12b1692478e490fbffdc1aad86e6de627425f8d (diff) | |
"char": use shorter names "to_lower"/"to_upper", analogous to the same names in "str"
Diffstat (limited to 'src/libcore/str.rs')
| -rw-r--r-- | src/libcore/str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs index de29f297192..1872d0ae674 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -833,7 +833,7 @@ Convert a string to lowercase fn to_lower(s: str) -> str { let outstr = ""; iter_chars(s) { |c| - push_char(outstr, char::to_lowercase(c)); + push_char(outstr, char::to_lower(c)); } ret outstr; } @@ -845,7 +845,7 @@ Convert a string to uppercase fn to_upper(s: str) -> str { let outstr = ""; iter_chars(s) { |c| - push_char(outstr, char::to_uppercase(c)); + push_char(outstr, char::to_upper(c)); } ret outstr; } |
