1
Fork 0

More fallout

This commit is contained in:
Nick Cameron 2015-01-01 17:40:24 +13:00
parent 13392d19ca
commit 2c92ddeda7
47 changed files with 149 additions and 149 deletions

View file

@ -392,7 +392,7 @@ fn escape_str(writer: &mut io::Writer, v: &str) -> Result<(), io::IoError> {
}
fn escape_char(writer: &mut io::Writer, v: char) -> Result<(), io::IoError> {
let mut buf = [0, .. 4];
let mut buf = [0; 4];
let len = v.encode_utf8(&mut buf).unwrap();
escape_bytes(writer, buf[mut ..len])
}