diff options
| author | Florian Hahn <flo@fhahn.com> | 2013-09-05 14:17:24 +0200 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2013-09-05 14:17:24 +0200 |
| commit | de39874801761197bf10bf8d04bde1aa2bd82e15 (patch) | |
| tree | 6afb87492fa6c69778066aa748b26ecae1fb5262 /src/libstd/rt/uv/uvio.rs | |
| parent | 422dcbd56d1a1888f1491d8fb14bb87a54fadbc7 (diff) | |
| download | rust-de39874801761197bf10bf8d04bde1aa2bd82e15.tar.gz rust-de39874801761197bf10bf8d04bde1aa2bd82e15.zip | |
Rename str::from_bytes to str::from_utf8, closes #8985
Diffstat (limited to 'src/libstd/rt/uv/uvio.rs')
| -rw-r--r-- | src/libstd/rt/uv/uvio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/uv/uvio.rs b/src/libstd/rt/uv/uvio.rs index e37dfba0cc1..6f9e3c43b0e 100644 --- a/src/libstd/rt/uv/uvio.rs +++ b/src/libstd/rt/uv/uvio.rs @@ -1812,7 +1812,7 @@ fn file_test_uvio_full_simple_impl() { let mut fd = (*io).fs_open(&Path(path), ro_fm, ro_fa).unwrap(); let mut read_vec = [0, .. 1028]; let nread = fd.read(read_vec).unwrap(); - let read_val = str::from_bytes(read_vec.slice(0, nread as uint)); + let read_val = str::from_utf8(read_vec.slice(0, nread as uint)); assert!(read_val == write_val.to_owned()); } (*io).fs_unlink(&Path(path)); |
