Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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]: rust-lang/rfcs#979

Closes #23911
[breaking-change]
latest commit e9bacbaa2c
@alexcrichton alexcrichton authored
..
Failed to load latest commit information.
fmt Fallout in libstd: remove impls now considered to conflict.
hash std: Clean out #[deprecated] APIs
num rollup merge of #23947: aturon/revise-num
str rollup merge of #23951: alexcrichton/splitn
any.rs Fallout in libstd: remove impls now considered to conflict.
array.rs Implement AsRef and AsMut for fixed-sized arrays
atomic.rs std: Clean out #[deprecated] APIs
cell.rs std: Clean out #[deprecated] APIs
char.rs std: Stabilize more of the `char` module
clone.rs An example for clone
cmp.rs rollup merge of #23288: alexcrichton/issue-19470
cmp_macros.rs std: Remove #[old_orphan_check] from PartialEq
convert.rs Test fixes and rebase conflicts, round 2
default.rs Strip all leading/trailing newlines
intrinsics.rs Test fixes and rebase conflicts, round 1
iter.rs Simplify `match` branches in iter.rs example
lib.rs Collect the definition of the `Error` trait into `libstd` for now. This
macros.rs rollup merge of #23288: alexcrichton/issue-19470
marker.rs Rollup merge of #23925 - steveklabnik:gh22914, r=Gankro
mem.rs Test fixes and rebase conflicts, round 1
nonzero.rs Rewrite `Unique<T>` so that it is covariant in T, implies `NonZero` a…
ops.rs Rollup merge of #23895 - nikomatsakis:fn-trait-inheritance-add-impls,…
option.rs std: Clean out #[deprecated] APIs
panicking.rs Mass rename uint/int to usize/isize
prelude.rs std: Clean out #[deprecated] APIs
ptr.rs std: Clean out #[deprecated] APIs
raw.rs std: Clean out #[deprecated] APIs
result.rs Remove IteratorExt
simd.rs Add #![feature] attributes to doctests
slice.rs std: Changing the meaning of the count to splitn
tuple.rs core: Update tuple doc
ty.rs markers -> marker
Something went wrong with that request. Please try again.