Skip to content

Commit c0e37ad

Browse files
authored
Rollup merge of rust-lang#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.
2 parents c4dc70e + 4cc8065 commit c0e37ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/style-guide/src/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ For attributes with argument lists, format like functions.
186186
```rust
187187
#[repr(C)]
188188
#[foo(foo, bar)]
189+
#[long_multi_line_attribute(
190+
split,
191+
across,
192+
lines,
193+
)]
189194
struct CRepr {
190195
#![repr(C)]
191196
x: f32,

0 commit comments

Comments
 (0)