Skip to content

Commit 5606f18

Browse files
committed
chore: Add rust syntax to an example
1 parent 41626dd commit 5606f18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/items/generics.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ attributes may give meaning to it.
9292
This example shows using a custom derive attribute to modify the meaning of a
9393
generic parameter.
9494

95-
```ignore
95+
```rust,ignore
9696
// Assume that the derive for MyFlexibleClone declared `my_flexible_clone` as
9797
// an attribute it understands.
98-
#[derive(MyFlexibleClone)] struct Foo<#[my_flexible_clone(unbounded)] H> {
98+
#[derive(MyFlexibleClone)]
99+
struct Foo<#[my_flexible_clone(unbounded)] H> {
99100
a: *const H
100101
}
101102
```

0 commit comments

Comments
 (0)