Revert bytes!() docstring change, and fix a typo.
This commit is contained in:
parent
108b8b6dc7
commit
72f0d45357
2 changed files with 2 additions and 2 deletions
|
@ -463,7 +463,7 @@ pub mod builtin {
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// let rust = b"rust\xFF";
|
/// let rust = bytes!("r", 'u', "st", 255);
|
||||||
/// assert_eq!(rust[1], 'u' as u8);
|
/// assert_eq!(rust[1], 'u' as u8);
|
||||||
/// assert_eq!(rust[4], 255);
|
/// assert_eq!(rust[4], 255);
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
@ -25,7 +25,7 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
|
||||||
for documentation");
|
for documentation");
|
||||||
cx.parse_sess.span_diagnostic.span_note(sp,
|
cx.parse_sess.span_diagnostic.span_note(sp,
|
||||||
"see https://github.com/rust-lang/rust/blob/master/src/etc/2014-06-rewrite-bytes-macros.py \
|
"see https://github.com/rust-lang/rust/blob/master/src/etc/2014-06-rewrite-bytes-macros.py \
|
||||||
for a automated migration");
|
for an automated migration");
|
||||||
|
|
||||||
// Gather all argument expressions
|
// Gather all argument expressions
|
||||||
let exprs = match get_exprs_from_tts(cx, sp, tts) {
|
let exprs = match get_exprs_from_tts(cx, sp, tts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue