1
Fork 0

Removed unneccessary _iter suffixes from various APIs

This commit is contained in:
Marvin Löbel 2013-11-23 11:18:51 +01:00
parent b42c438892
commit 24b316a3b9
63 changed files with 473 additions and 469 deletions

View file

@ -25,7 +25,7 @@ impl<'self> fmt::Default for Escape<'self> {
// characters to escape: http://stackoverflow.com/questions/7381974
let pile_o_bits = s.as_slice();
let mut last = 0;
for (i, ch) in s.byte_iter().enumerate() {
for (i, ch) in s.bytes().enumerate() {
match ch as char {
'<' | '>' | '&' | '\'' | '"' => {
fmt.buf.write(pile_o_bits.slice(last, i).as_bytes());