auto merge of #14305 : tbu-/rust/pr_doc_bytes, r=huonw
Only an example was needed, as the ability to write uints into the string is already mentioned. Fix #7102.
This commit is contained in:
commit
e546452727
@ -471,8 +471,9 @@ macro_rules! option_env( ($name:expr) => ({ /* compiler built-in */ }) )
|
|||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// let rust = bytes!("r", 'u', "st");
|
/// let rust = bytes!("r", 'u', "st", 255);
|
||||||
/// assert_eq!(rust[1], 'u' as u8);
|
/// assert_eq!(rust[1], 'u' as u8);
|
||||||
|
/// assert_eq!(rust[5], 255);
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! bytes( ($($e:expr),*) => ({ /* compiler built-in */ }) )
|
macro_rules! bytes( ($($e:expr),*) => ({ /* compiler built-in */ }) )
|
||||||
|
Loading…
Reference in New Issue
Block a user