diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-02 00:33:04 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-04 22:35:53 +1100 |
| commit | b0426edc0a83699de79ceffcbe603812b9b53374 (patch) | |
| tree | 1aff5ef5a386dbe93febb8eab89033fa83f33a8a /src/libstd/io/mod.rs | |
| parent | 9d64e46013096997627da62ecc65225bc22682e8 (diff) | |
| download | rust-b0426edc0a83699de79ceffcbe603812b9b53374.tar.gz rust-b0426edc0a83699de79ceffcbe603812b9b53374.zip | |
std::str: s/from_utf8_slice/from_utf8/, to make the basic case shorter.
Diffstat (limited to 'src/libstd/io/mod.rs')
| -rw-r--r-- | src/libstd/io/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index c00233dda55..208c64f5ef4 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1049,7 +1049,7 @@ pub trait Buffer: Reader { Some(n) if n == width => {} Some(..) | None => return None // read error } - match str::from_utf8_slice_opt(buf.slice_to(width)) { + match str::from_utf8_opt(buf.slice_to(width)) { Some(s) => Some(s.char_at(0)), None => None } |
