Skip to content

Commit

Permalink
fix str::split_at_mut() example
Browse files Browse the repository at this point in the history
  • Loading branch information
bungcip committed Apr 13, 2016
1 parent 525aa61 commit 2bf0003
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 2bf0003

Please sign in to comment.