-
Couldn't load subscription status.
- Fork 128
Rename FromZeroes to FromZeros
#430
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
Conversation
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.
There are some files with the zeroes spelling in the name that need to be changed, but otherwise LGTM!
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.
Also, can you update the commit message?
- Capitalize "rename" in the summary line
- Mention that "zeroes" is a valid spelling, but that "zeros" is more commonly accepted, possibly citing this StackExchange answer
- Add
Closes #431at the end
c3263b0 to
b9c524b
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.
In the commit message:
Although both spelling are acceptable
Should be "spellings" plural.
Although both spellings are acceptable, "zeros" is the somewhat more common [1] spelling of the plural noun "zero". We continue to use the spelling "zeroes" for the verb; i.e., to replace bytes with the value `0`. For user convenience, `FromZeroes` is retained as a deprecated, `doc(hidden)` re-export of `FromZeros`. Closes #431 [1] https://english.stackexchange.com/questions/3824/what-is-the-plural-form-of-zero/3825#3825
| /// Deprecated: prefer [`FromZeros`] instead. | ||
| #[deprecated(since = "0.8.0", note = "`FromZeroes` was renamed to `FromZeros`")] | ||
| #[doc(hidden)] | ||
| pub use FromZeros as FromZeroes; |
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.
This is going to use-rename both the trait and the proc macro (if it's in scope from the derive feature).
Pretend you didn't see this.
FromZeroesis retained as a deprecated,doc(hidden)re-export.Additionally, for consistency,
LayoutVerifiedis changed from a type alias topub use ... as ...reexport.