Skip to content

Commit

Permalink
Remove part about concat! from doc comment example
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 25, 2022
1 parent 8cad741 commit 86c29ac
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 86c29ac

Please sign in to comment.