diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-03-14 17:41:28 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-03-23 00:15:05 +1100 |
| commit | 429b8a9b9e48925fa34b02b05568e630d78c855b (patch) | |
| tree | 72d2bca230ea931ab5fe0907cb84017b0ef5546d /src/libstd | |
| parent | 9584c60871dc712f95a2f37f24853cf3faf6191e (diff) | |
| download | rust-429b8a9b9e48925fa34b02b05568e630d78c855b.tar.gz rust-429b8a9b9e48925fa34b02b05568e630d78c855b.zip | |
libcore: handle trailing newlines more like other languages.
Specifically, `lines` and `each_line` will not emit a trailing empty string when given "...\n". Also, add `read_lines`, which just collects all of `each_line` into a vector, and `split_*_no_trailing` which will is the generalised version of `lines`.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions
