]> git.lizzy.rs Git - rust.git/blobdiff - library/proc_macro/src/lib.rs
Auto merge of #97442 - hafeoz:master, r=GuillaumeGomez
[rust.git] / library / proc_macro / src / lib.rs
index f1c5eaad868e99d495224fd2cee4111f4e9c17b6..6f7c6305afc14ec91e1be195cd68c6f4dc3a1735 100644 (file)
@@ -703,11 +703,12 @@ pub enum Delimiter {
     /// `[ ... ]`
     #[stable(feature = "proc_macro_lib2", since = "1.29.0")]
     Bracket,
-    /// `Ø ... Ø`
+    /// `/*«*/ ... /*»*/`
     /// An invisible delimiter, that may, for example, appear around tokens coming from a
     /// "macro variable" `$var`. It is important to preserve operator priorities in cases like
     /// `$var * 3` where `$var` is `1 + 2`.
-    /// Invisible delimiters might not survive roundtrip of a token stream through a string.
+    /// Invisible delimiters are not directly writable in normal Rust code except as comments.
+    /// Therefore, they might not survive a roundtrip of a token stream through a string.
     #[stable(feature = "proc_macro_lib2", since = "1.29.0")]
     None,
 }