mirror of
https://gitee.com/openharmony/third_party_rust_quote
synced 2024-11-23 07:10:01 +00:00
Remove part about concat! from doc comment example
This commit is contained in:
parent
8cad741724
commit
86c29ac520
@ -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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user