Rename str::from_bytes to str::from_utf8, closes #8985
This commit is contained in:
parent
422dcbd56d
commit
de39874801
38 changed files with 147 additions and 147 deletions
|
@ -858,7 +858,7 @@ impl<T : iterator::Iterator<char>> Parser<T> {
|
|||
|
||||
/// Decodes a json value from an @io::Reader
|
||||
pub fn from_reader(rdr: @io::Reader) -> Result<Json, Error> {
|
||||
let s = str::from_bytes(rdr.read_whole_stream());
|
||||
let s = str::from_utf8(rdr.read_whole_stream());
|
||||
let mut parser = Parser(~s.iter());
|
||||
parser.parse()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue