-
Notifications
You must be signed in to change notification settings - Fork 104
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
Rename TryFromBytes
methods to be consistent with FromBytes
#1119
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.
Can you add to the commit message:
Makes progress on #5
src/lib.rs
Outdated
/// [*valid instance*]: #what-is-a-valid-instance | ||
#[cfg_attr(feature = "derive", doc = "[derive]: zerocopy_derive::TryFromBytes")] | ||
#[cfg_attr( | ||
not(feature = "derive"), | ||
doc = concat!("[derive]: https://docs.rs/zerocopy/", env!("CARGO_PKG_VERSION"), "/zerocopy/derive.TryFromBytes.html"), | ||
)] | ||
// TODO(#5): Update `try_from_ref` doc link once it exists | ||
// TODO(#5): Update `try_ref_from` doc link once it exists |
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.
Is this TODO done? Can we remove it while we're here?
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.
Done!
b9eae53
to
07d9841
Compare
Still need to do this ^ |
07d9841
to
0135034
Compare
Whoops, missed that. Done. |
For example,
try_from_ref
is nowtry_ref_from
.See: #1095