Skip to content

Commit

Permalink
[str-split-at] Update drawbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrik Sverdrup committed May 20, 2015
1 parent 622e252 commit 8f8f7ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions text/0000-str-split-at.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Implementing `split_at_mut` is not relevant for `str` at this time.

# Drawbacks

* `split_at` panics on 1) index out of bounds 2) index not on character
boundary.
* Possible name confusion with other `str` methods like `.split()`
* According to our developing API evolution and semver guidelines this is a
breaking change but a (very) minor change. Adding methods is something we
Expand Down

0 comments on commit 8f8f7ea

Please sign in to comment.