Skip to content

Commit

Permalink
Address alercah's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Feb 20, 2018
1 parent 9b11790 commit daa5b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ pub mod m3 {
}
```

#### Must Use Attribute
#### `must_use` Attribute

The `must_use` attribute can be used on user-defined composite types
([`struct`s][struct], [`enum`s][enum], and [`union`s][union]) and [functions].
Expand All @@ -391,7 +391,7 @@ struct MustUse {
# impl MustUse {
# fn new() -> MustUse { MustUse {} }
# }

#
fn main() {
// Violates the `unused_must_use` lint.
MustUse::new();
Expand Down

0 comments on commit daa5b90

Please sign in to comment.