Skip to content

Commit

Permalink
Spaces around = in attributes
Browse files Browse the repository at this point in the history
Closes #82
  • Loading branch information
nrc committed Feb 5, 2018
1 parent 937c928 commit 58470a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guide/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ struct CRepr {
}
```

For attributes with an equal sign, there should be a single space before and
after the `=`, e.g., `#[foo = 42]`.

There must only be a single `derive` attribute. Note for tool authors: if
combining multiple `derive` attributes into a single attribute, the ordering of
the derived names should be preserved. E.g., `#[derive(bar)] #[derive(foo)]
Expand Down

0 comments on commit 58470a3

Please sign in to comment.