Skip to content

Commit bea8053

Browse files
committed
Spaces around = in attributes
Closes #82
1 parent 5936964 commit bea8053

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

guide/guide.md

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ struct CRepr {
101101
}
102102
```
103103

104+
For attributes with an equal sign, there should be a single space before and
105+
after the `=`, e.g., `#[foo = 42]`.
106+
104107
There must only be a single `derive` attribute. Note for tool authors: if
105108
combining multiple `derive` attributes into a single attribute, the ordering of
106109
the derived names should be preserved. E.g., `#[derive(bar)] #[derive(foo)]

0 commit comments

Comments
 (0)