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 Nov 23, 2017
1 parent 5936964 commit bea8053
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 @@ -101,6 +101,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 bea8053

Please sign in to comment.