Skip to content

Conversation

@Stebalien
Copy link
Contributor

  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.

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`.
@rust-highfive
Copy link
Contributor

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

@frewsxcv
Copy link
Contributor

Looks great, thanks! @bors r+ rollup

@bors
Copy link
Collaborator

bors commented Feb 17, 2017

📌 Commit eec9e98 has been approved by frewsxcv

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Feb 18, 2017
… r=frewsxcv

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`.
bors added a commit that referenced this pull request Feb 18, 2017
Rollup of 5 pull requests

- Successful merges: #39847, #39862, #39898, #39904, #39928
- Failed merges:
@bors bors merged commit eec9e98 into rust-lang:master Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants