about summary refs log tree commit diff
path: root/src/libsyntax/ext/bytes.rs
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2013-07-27 23:38:38 +0200
committerMarvin Löbel <loebel.marvin@gmail.com>2013-07-30 12:55:48 +0200
commite33fca9ffefffc982bbde860251f11b191457412 (patch)
tree96aa8a71d31a63dd53446af3e0c235e8128305d3 /src/libsyntax/ext/bytes.rs
parentd75ab4a5d798164c37e04a0794f2e28acdb76dd4 (diff)
downloadrust-e33fca9ffefffc982bbde860251f11b191457412.tar.gz
rust-e33fca9ffefffc982bbde860251f11b191457412.zip
Added str::char_offset_iter() and str::rev_char_offset_iter()
Renamed bytes_iter to byte_iter to match other iterators
Refactored str Iterators to use DoubleEnded Iterators and typedefs instead of wrapper structs
Reordered the Iterator section
Whitespace fixup
Moved clunky `each_split_within` function to the one place in the tree where it's actually needed
Replaced all block doccomments in str with line doccomments
Diffstat (limited to 'src/libsyntax/ext/bytes.rs')
-rw-r--r--src/libsyntax/ext/bytes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/bytes.rs b/src/libsyntax/ext/bytes.rs
index 2092c45074e..e1face8a9b3 100644
--- a/src/libsyntax/ext/bytes.rs
+++ b/src/libsyntax/ext/bytes.rs
@@ -27,7 +27,7 @@ pub fn expand_syntax_ext(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree]) -> bas
             ast::expr_lit(lit) => match lit.node {
                 // string literal, push each byte to vector expression
                 ast::lit_str(s) => {
-                    for s.bytes_iter().advance |byte| {
+                    for s.byte_iter().advance |byte| {
                         bytes.push(cx.expr_u8(sp, byte));
                     }
                 }