Remove part about concat! from doc comment example

This commit is contained in:
David Tolnay 2022-03-25 00:08:49 -07:00
parent 8cad741724
commit 86c29ac520
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -389,14 +389,6 @@ pub mod spanned;
/// }
/// ```
///
/// Macro calls in a doc attribute are not valid syntax:
///
/// ```compile_fail
/// quote! {
/// #[doc = concat!("try to interpolate: ", stringify!(#ident))]
/// }
/// ```
///
/// Instead the best way to build doc comments that involve variables is by
/// formatting the doc string literal outside of quote.
///