Rollup merge of #113140 - joshtriplett:style-guide-example-multi-line-attribute, r=calebcartwright
style-guide: Add an example of formatting a multi-line attribute We already say to format attributes like functions, but we didn't have an example of formatting a multi-line attribute.
This commit is contained in:
commit
c0e37ad127
@ -186,6 +186,11 @@ For attributes with argument lists, format like functions.
|
||||
```rust
|
||||
#[repr(C)]
|
||||
#[foo(foo, bar)]
|
||||
#[long_multi_line_attribute(
|
||||
split,
|
||||
across,
|
||||
lines,
|
||||
)]
|
||||
struct CRepr {
|
||||
#![repr(C)]
|
||||
x: f32,
|
||||
|
Loading…
x
Reference in New Issue
Block a user