]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #39904 - Stebalien:cleanup-string-split-off, r=frewsxcv
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 18 Feb 2017 17:10:14 +0000 (18:10 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Feb 2017 17:10:14 +0000 (18:10 +0100)
Fixup String::split_off documentation

1. Clarify that `String::split_off` returns one string and modifies self in-place. The documentation implied that it returns two new strings.

2. Make the documentation mirror `Vec::split_off`.


Trivial merge