-
Notifications
You must be signed in to change notification settings - Fork 690
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
[Documentation] Add description for VoteTally's methods #3140
[Documentation] Add description for VoteTally's methods #3140
Conversation
891f717
to
bb29c3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentences should have a period at the end.
While methods' names on VoteTally trait might be self-explanatory at first sight, the distinction between support and approval can be a bit ambiguous for some readers.
Isn't this explained in the Tally
struct?
cc77ac6
to
4babf3c
Compare
It is explained, but specifically for the context of the conviction voting's |
6c6cdb1
to
60b2b89
Compare
) # Description While methods' names on [`VoteTally`][1] trait might be self-explanatory at first sight, the distinction between `support` and `approval` can be a bit ambiguous for some readers. This PR aims to clarify the distinction and inform about the expected values for every not yet documented method on this trait. # Checklist - [x] My PR includes a detailed description as outlined in the "Description" section above - [ ] My PR follows the [labeling requirements](CONTRIBUTING.md#Process) of this project (at minimum one label for `T` required) - [x] I have made corresponding changes to the documentation (if applicable) - [x] I have added tests that prove my fix is effective or that my feature works (if applicable) [1]: https://docs.rs/frame-support/latest/frame_support/traits/trait.VoteTally.html --------- Co-authored-by: Bastian Köcher <git@kchr.de>
Description
While methods' names on
VoteTally
trait might be self-explanatory at first sight, the distinction betweensupport
andapproval
can be a bit ambiguous for some readers. This PR aims to clarify the distinction and inform about the expected values for every not yet documented method on this trait.Checklist
T
required)