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:
bors 2014-05-20 17:36:18 -07:00
commit e546452727

View File

@ -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 */ }) )