Skip to content

Commit 9c3dbe1

Browse files
committed
Small doc fixup to workaround rustdoc bug
rust-lang/rust#45939 rust-lang/rust#60543
1 parent 63430c2 commit 9c3dbe1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

helper_crates/vtable/macro/macro.rs

+7
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,13 @@ pub fn vtable(_attr: TokenStream, item: TokenStream) -> TokenStream {
513513
let static_vtable_macro_doc = format!(
514514
r"Instentiate a static {vtable} for a given type and implements `vtable::HasStaticVTable<{vtable}>` for it.
515515
516+
```ignore
517+
// The preview above is misleading because of rust-lang/rust#45939, so it is reproctuced bellow
518+
macro_rules! {macro} {{
519+
($(#[$meta:meta])* $vis:vis static $ident:ident for $ty:ty) => {{ ... }}
520+
}}
521+
```
522+
516523
Given a type `MyType` that implements the trait `{trait} {trait_extra}`,
517524
create a static variable of type {vtable},
518525
and implements HasStaticVTable for it.

0 commit comments

Comments
 (0)