Rollup merge of #32941 - bungcip:fix-doc-1, r=alexcrichton

fix str::split_at_mut() example

fix documentation issue #32933
This commit is contained in:
Steve Klabnik 2016-04-14 14:49:11 -04:00
commit 7e2302b253

View File

@ -634,9 +634,9 @@ impl str {
/// Basic usage:
///
/// ```
/// let s = "Per Martin-Löf";
/// let mut s = "Per Martin-Löf".to_string();
///
/// let (first, last) = s.split_at(3);
/// let (first, last) = s.split_at_mut(3);
///
/// assert_eq!("Per", first);
/// assert_eq!(" Martin-Löf", last);