Skip to content

Commit 7e2302b

Browse files
committed
Rollup merge of #32941 - bungcip:fix-doc-1, r=alexcrichton
fix str::split_at_mut() example fix documentation issue #32933
2 parents e14401f + 2bf0003 commit 7e2302b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ impl str {
634634
/// Basic usage:
635635
///
636636
/// ```
637-
/// let s = "Per Martin-Löf";
637+
/// let mut s = "Per Martin-Löf".to_string();
638638
///
639-
/// let (first, last) = s.split_at(3);
639+
/// let (first, last) = s.split_at_mut(3);
640640
///
641641
/// assert_eq!("Per", first);
642642
/// assert_eq!(" Martin-Löf", last);

0 commit comments

Comments
 (0)