]> git.lizzy.rs Git - rust.git/commit
rollup merge of #23951: alexcrichton/splitn
authorAlex Crichton <alex@alexcrichton.com>
Wed, 1 Apr 2015 20:30:08 +0000 (13:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 1 Apr 2015 20:30:08 +0000 (13:30 -0700)
commite9bacbaa2c9c88aaecf07ee30f02d08a1999e5c6
tree83ee5701b24c3f0608af96758fd4d5f78b9c8bae
parentfb4029f8eadbf77a8d7a53fadb58decf3a1a49bc
parente98dce3e00a7b6bfd264418ef993bbf9cdb1f0b6
rollup merge of #23951: alexcrichton/splitn

This commit is an implementation of [RFC 979][rfc] which changes the meaning of
the count parameter to the `splitn` function on strings and slices. The
parameter now means the number of items that are returned from the iterator, not
the number of splits that are made.

[rfc]: https://github.com/rust-lang/rfcs/pull/979

Closes #23911
[breaking-change]
src/libcore/str/mod.rs
src/librustc_driver/pretty.rs
src/libstd/path.rs