Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorygaines committed Dec 22, 2024
1 parent 4e7b537 commit 40e1aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ let mut bitfield = BitfieldBuilder::new()
let u8int = bitfield.u8int(); // Getters
let small_u8int = bitfield.small_u8int(); // Signed-types are sign-extended.
bitfield.ignore_me; // Ignored fields can be accessed directly.
// bitfield.read_only(); // Compile error, read-only fields can't be set.
// bitfield.set_read_only(0x3); // Compile error, read-only fields can't be set.

// Setting fields:
bitfield.set_u8int(0x3); // Setters
Expand Down
2 changes: 1 addition & 1 deletion bitfields_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub(crate) const PADDING_FIELD_NAME_PREFIX: &str = "_";
/// let u8int = bitfield.u8int(); // Getters
/// let small_u8int = bitfield.small_u8int(); // Signed-types are sign-extended.
/// bitfield.ignore_me; // Ignored fields can be accessed directly.
/// // bitfield.read_only(); // Compile error, read-only fields can't be set.
/// // bitfield.set_read_only(0x3); // Compile error, read-only fields can't be set.
///
/// // Setting fields:
/// bitfield.set_u8int(0x3); // Setters
Expand Down

0 comments on commit 40e1aec

Please sign in to comment.