Skip to content
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

Add some doc for the derive macro #301

Merged
merged 4 commits into from
Nov 24, 2021
Merged

Add some doc for the derive macro #301

merged 4 commits into from
Nov 24, 2021

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Nov 23, 2021

No description provided.

/// # #[derive(Encode, MaxEncodedLen)]
/// #[codec(mel_bound(T: MaxEncodedLen))]
/// # struct MyWrapper<T>(T);
/// ```
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 it may be overkill to set up a compiling example just to check the syntax of the attribute, but it renders fine I think

Copy link
Member

Choose a reason for hiding this comment

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

Compiled examples are never an overkill 👍

derive/src/lib.rs Outdated Show resolved Hide resolved
@gui1117
Copy link
Contributor Author

gui1117 commented Nov 23, 2021

bot merge

@bkchr bkchr merged commit 94f5887 into master Nov 24, 2021
@bkchr bkchr deleted the gui-some-doc branch November 24, 2021 00:07
@bkchr
Copy link
Member

bkchr commented Nov 24, 2021

🤖 done

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.

4 participants