Skip to content

Commit 72f0d45

Browse files
SimonSapinalexcrichton
authored andcommitted
Revert bytes!() docstring change, and fix a typo.
1 parent 108b8b6 commit 72f0d45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ pub mod builtin {
463463
/// # Example
464464
///
465465
/// ```
466-
/// let rust = b"rust\xFF";
466+
/// let rust = bytes!("r", 'u', "st", 255);
467467
/// assert_eq!(rust[1], 'u' as u8);
468468
/// assert_eq!(rust[4], 255);
469469
/// ```

src/libsyntax/ext/bytes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
2525
for documentation");
2626
cx.parse_sess.span_diagnostic.span_note(sp,
2727
"see https://github.com/rust-lang/rust/blob/master/src/etc/2014-06-rewrite-bytes-macros.py \
28-
for a automated migration");
28+
for an automated migration");
2929

3030
// Gather all argument expressions
3131
let exprs = match get_exprs_from_tts(cx, sp, tts) {

0 commit comments

Comments
 (0)