diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-14 13:43:05 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-16 10:50:28 +1000 |
| commit | ee25cf8d75671415e74ff3fe1a3c0ba42e35396a (patch) | |
| tree | c7111c209e9b7dde736277b385ea950052e521af /src/libstd/str.rs | |
| parent | 4686ed1a1d6e85d2c17fd67fdf4be597c701d141 (diff) | |
| download | rust-ee25cf8d75671415e74ff3fe1a3c0ba42e35396a.tar.gz rust-ee25cf8d75671415e74ff3fe1a3c0ba42e35396a.zip | |
std: test-fixes, remove warnings, syntax highlighting for code examples.
Diffstat (limited to 'src/libstd/str.rs')
| -rw-r--r-- | src/libstd/str.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 89d497177dc..1ab07003b6e 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -1432,7 +1432,7 @@ impl<'self> StrSlice<'self> for &'self str { * * # Example * - * ~~~ + * ~~~ {.rust} * assert_eq!("11foo1bar11".trim_chars(&'1'), "foo1bar") * assert_eq!("12foo1bar12".trim_chars(& &['1', '2']), "foo1bar") * assert_eq!("123foo1bar123".trim_chars(&|c: char| c.is_digit()), "foo1bar") @@ -1451,7 +1451,7 @@ impl<'self> StrSlice<'self> for &'self str { * * # Example * - * ~~~ + * ~~~ {.rust} * assert_eq!("11foo1bar11".trim_left_chars(&'1'), "foo1bar11") * assert_eq!("12foo1bar12".trim_left_chars(& &['1', '2']), "foo1bar12") * assert_eq!("123foo1bar123".trim_left_chars(&|c: char| c.is_digit()), "foo1bar123") @@ -1473,7 +1473,7 @@ impl<'self> StrSlice<'self> for &'self str { * * # Example * - * ~~~ + * ~~~ {.rust} * assert_eq!("11foo1bar11".trim_right_chars(&'1'), "11foo1bar") * assert_eq!("12foo1bar12".trim_right_chars(& &['1', '2']), "12foo1bar") * assert_eq!("123foo1bar123".trim_right_chars(&|c: char| c.is_digit()), "123foo1bar") |
