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:
commit
7e2302b253
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue