]> git.lizzy.rs Git - rust.git/commitdiff
fix stringify docs in std
authorAlex Burka <durka42+github@gmail.com>
Sun, 22 Oct 2017 17:17:23 +0000 (13:17 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Oct 2017 17:17:23 +0000 (13:17 -0400)
src/libstd/macros.rs

index 8089671f309d28d22e63fecc8710b5e2c704e6aa..6318e2e40875faef5807eaacf1261fd62fb4341a 100644 (file)
@@ -490,7 +490,7 @@ macro_rules! column { () => ({ /* compiler built-in */ }) }
     #[macro_export]
     macro_rules! file { () => ({ /* compiler built-in */ }) }
 
-    /// A macro which stringifies its argument.
+    /// A macro which stringifies its arguments.
     ///
     /// This macro will yield an expression of type `&'static str` which is the
     /// stringification of all the tokens passed to the macro. No restrictions
@@ -507,7 +507,7 @@ macro_rules! file { () => ({ /* compiler built-in */ }) }
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
-    macro_rules! stringify { ($t:tt) => ({ /* compiler built-in */ }) }
+    macro_rules! stringify { ($($t:tt)*) => ({ /* compiler built-in */ }) }
 
     /// Includes a utf8-encoded file as a string.
     ///