Skip to content

Commit 365eafb

Browse files
authored
fix stringify docs in std
1 parent 42ad2d7 commit 365eafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ pub mod builtin {
490490
#[macro_export]
491491
macro_rules! file { () => ({ /* compiler built-in */ }) }
492492

493-
/// A macro which stringifies its argument.
493+
/// A macro which stringifies its arguments.
494494
///
495495
/// This macro will yield an expression of type `&'static str` which is the
496496
/// stringification of all the tokens passed to the macro. No restrictions
@@ -507,7 +507,7 @@ pub mod builtin {
507507
/// ```
508508
#[stable(feature = "rust1", since = "1.0.0")]
509509
#[macro_export]
510-
macro_rules! stringify { ($t:tt) => ({ /* compiler built-in */ }) }
510+
macro_rules! stringify { ($($t:tt)*) => ({ /* compiler built-in */ }) }
511511

512512
/// Includes a utf8-encoded file as a string.
513513
///

0 commit comments

Comments
 (0)