Closed
Description
It's not clear to me if this is the expected behavior or not, but this program:
fn main() {
let x = " a b c".to_string();
let d: Vec<_> = x.split(' ').collect();
println!("{:?}", d);
}
yields:
["", "", "", "", "a", "", "b", "c"]
whereas I expected:
["a","b","c"]
If the current behavior is expected, it should be more clearly documented, at minimum.
cc @Kimundi