diff options
| author | bors <bors@rust-lang.org> | 2014-05-20 17:36:18 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-20 17:36:18 -0700 |
| commit | e546452727379f701f2104eb826141a29d4b39fd (patch) | |
| tree | e5072fadc1aac38fe505b36b715b402228363c8e /src/libstd | |
| parent | 6ecf7d97d0347ce2efd5410159798659a310e67a (diff) | |
| parent | 84f43c6acd58c6c64fb1d0fde09f55e496d67332 (diff) | |
| download | rust-e546452727379f701f2104eb826141a29d4b39fd.tar.gz rust-e546452727379f701f2104eb826141a29d4b39fd.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 9d1fd230f5c..1c616bdcbbf 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -471,8 +471,9 @@ pub mod builtin { /// # Example /// /// ``` - /// let rust = bytes!("r", 'u', "st"); + /// let rust = bytes!("r", 'u', "st", 255); /// assert_eq!(rust[1], 'u' as u8); + /// assert_eq!(rust[5], 255); /// ``` #[macro_export] macro_rules! bytes( ($($e:expr),*) => ({ /* compiler built-in */ }) ) |
