std: test-fixes, remove warnings, syntax highlighting for code examples.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user