diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-03-21 23:02:27 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-03-21 23:06:05 +0100 |
| commit | 0a47cd5ef183d5a7e763484e211f4b3aed6d72de (patch) | |
| tree | 4f769f75ea9514f1012d4faa77782d1d4e45772c /src/libstd | |
| parent | ee2f3d9673407db3ca5a0eb24e01ef52c7fc676c (diff) | |
| download | rust-0a47cd5ef183d5a7e763484e211f4b3aed6d72de.tar.gz rust-0a47cd5ef183d5a7e763484e211f4b3aed6d72de.zip | |
Un-renamed trim and substr functions.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/bigint.rs | 2 | ||||
| -rw-r--r-- | src/libstd/semver.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/bigint.rs b/src/libstd/bigint.rs index d7bd5fe6f20..01153a4b78e 100644 --- a/src/libstd/bigint.rs +++ b/src/libstd/bigint.rs @@ -462,7 +462,7 @@ pub impl BigUint { let s = uint::to_str_radix(*n as uint, radix); str::from_chars(vec::from_elem(l - s.len(), '0')) + s })); - str::trim_left_chars_DBGBRWD(s, ['0']).to_owned() + str::trim_left_chars(s, ['0']).to_owned() } } diff --git a/src/libstd/semver.rs b/src/libstd/semver.rs index a5534e29161..e1e7f8ca924 100644 --- a/src/libstd/semver.rs +++ b/src/libstd/semver.rs @@ -223,7 +223,7 @@ pub fn parse(s: &str) -> Option<Version> { if ! str::is_ascii(s) { return None; } - let s = s.trim_DBGBRWD(); + let s = s.trim(); let mut bad = false; do bad_parse::cond.trap(|_| { debug!("bad"); bad = true }).in { do io::with_str_reader(s) |rdr| { |
