Skip to content

Commit

Permalink
Merge #227
Browse files Browse the repository at this point in the history
227: Setting output to `high` needs a `true` argument r=therealprof a=Rosto75

See the comment in line 239.

Co-authored-by: Tomasz Różański <[email protected]>
  • Loading branch information
bors[bot] and tomasz-rozanski authored Feb 27, 2020
2 parents 0056a65 + fb382e5 commit b81ffb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static-guarantees/design-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ let pin_state = pulled_low.bit_is_set();
* Example 3: Pulled Low input to Output, set high
*/
let output_pin = pulled_low.into_enabled_output();
output_pin.set_bit(false);
output_pin.set_bit(true);
// Can't do this, output pins don't have this interface!
// output_pin.into_input_pull_down();
Expand Down

0 comments on commit b81ffb7

Please sign in to comment.