]> git.proxmox.com Git - rustc.git/blobdiff - src/libsyntax/parse/mod.rs
Imported Upstream version 1.4.0+dfsg1
[rustc.git] / src / libsyntax / parse / mod.rs
index c5a73601d895c93dd495755f765e56020dff8c43..269f8bdd98acc45b4f1ef6dc294a6353223b0a2c 100644 (file)
@@ -499,7 +499,7 @@ pub fn byte_lit(lit: &str) -> (u8, usize) {
     }
 }
 
-pub fn binary_lit(lit: &str) -> Rc<Vec<u8>> {
+pub fn byte_str_lit(lit: &str) -> Rc<Vec<u8>> {
     let mut res = Vec::with_capacity(lit.len());
 
     // FIXME #8372: This could be a for-loop if it didn't borrow the iterator
@@ -517,7 +517,7 @@ pub fn binary_lit(lit: &str) -> Rc<Vec<u8>> {
         }
     }
 
-    // binary literals *must* be ASCII, but the escapes don't have to be
+    // byte string literals *must* be ASCII, but the escapes don't have to be
     let mut chars = lit.bytes().enumerate().peekable();
     loop {
         match chars.next() {