Skip to content

Link to the rustdoc book for doc attribute docs. #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented Dec 15, 2017

- `must_use` - on structs and enums, will warn if a value of this type isn't used or
assigned to a variable. You may also include an optional message by using
`#[must_use = "message"]` which will be given alongside the warning.

### Documentation

The `doc` attribute is used to document items and fields. [Doc comments]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be a link anchor? I can't find its reference link.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Forgot to add it. Added and rebased.

@QuietMisdreavus QuietMisdreavus merged commit 508674a into rust-lang:master Dec 15, 2017
@QuietMisdreavus
Copy link
Member

Thanks! I wanted to link to the rustdoc book for this, so this is good!

@Havvy Havvy deleted the attribute-doc branch December 15, 2017 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants