about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-29 05:48:41 +0200
committerGitHub <noreply@github.com>2023-06-29 05:48:41 +0200
commitc0e37ad1271042428d8e6c8f40516f76e91c4843 (patch)
treeffa85d7ff72f8de899ad37e9c3dbbf8fe33cbe99 /src/doc
parentc4dc70eb31b304770071128dbf86da8154c9046a (diff)
parent4cc80651b84665c92851f95a07e9443675c281f5 (diff)
downloadrust-c0e37ad1271042428d8e6c8f40516f76e91c4843.tar.gz
rust-c0e37ad1271042428d8e6c8f40516f76e91c4843.zip
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.
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/style-guide/src/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/style-guide/src/README.md b/src/doc/style-guide/src/README.md
index 75013bb3df9..b8aa64ba14f 100644
--- a/src/doc/style-guide/src/README.md
+++ b/src/doc/style-guide/src/README.md
@@ -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,