Skip to content

Commit

Permalink
Merge pull request #214 from dtolnay/docconcat
Browse files Browse the repository at this point in the history
Remove part about `concat!` from doc comment example
  • Loading branch information
dtolnay authored Mar 25, 2022
2 parents 8cad741 + 86c29ac commit c1723f9
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 c1723f9

Please sign in to comment.