Skip to content

Commit

Permalink
Rollup merge of rust-lang#32941 - bungcip:fix-doc-1, r=alexcrichton
Browse files Browse the repository at this point in the history
fix str::split_at_mut() example

fix documentation issue rust-lang#32933
  • Loading branch information
steveklabnik committed Apr 14, 2016
2 parents e14401f + 2bf0003 commit 7e2302b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e2302b

Please sign in to comment.