-
Notifications
You must be signed in to change notification settings - Fork 234
improved digital compatibility docs #136
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.
Docs improvements are always great 🙂 Thanks!
//! pub fn new(pin: T) -> OldOutputPinConsumer<T> { | ||
//! OldOutputPinConsumer{ _pin: pin } | ||
//! } | ||
//! } |
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.
The docs could be a bit shorter if you'd skip the new
function and simply make the _pin
field pub pin
instead, and then directly assign the value in main
.
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.
i think i prefer the new
method as it shows how you'd usually use it (with the where
clause), am okay to change it if you disagree strongly.
//! pub fn new(pin: T) -> NewOutputPinConsumer<T> { | ||
//! NewOutputPinConsumer{ _pin: pin } | ||
//! } | ||
//! } |
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.
Same thing here with the new
function.
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.
LGTM
bors r+ |
Build failed |
Again, bors build fails because we deny warnings. I'll create a PR to remove that line. |
bors retry |
Build succeeded |
No description provided.