]> git.lizzy.rs Git - rust.git/commit
std: Changing the meaning of the count to splitn
authorAlex Crichton <alex@alexcrichton.com>
Wed, 1 Apr 2015 18:28:34 +0000 (11:28 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 1 Apr 2015 20:29:42 +0000 (13:29 -0700)
commite98dce3e00a7b6bfd264418ef993bbf9cdb1f0b6
tree1569b4aa8d412df9c49904b8bddeb44d8d4ecef2
parentd528aa9960cb9b937d8ef6c09905a6a8076d5f3a
std: Changing the meaning of the count to 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]
14 files changed:
src/compiletest/header.rs
src/libcollections/slice.rs
src/libcollections/str.rs
src/libcollectionstest/slice.rs
src/libcollectionstest/str.rs
src/libcore/slice.rs
src/libcore/str/mod.rs
src/libcoretest/str.rs
src/librustc/session/config.rs
src/librustc_driver/pretty.rs
src/librustdoc/lib.rs
src/libstd/net/addr.rs
src/libstd/path.rs
src/libstd/sys/unix/os.rs