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:
Matthias Krüger 2023-06-29 05:48:41 +02:00 committed by GitHub
commit c0e37ad127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,