Skip to content

Commit

Permalink
Fix typo in bitfields documentation (rust-lang#2412)
Browse files Browse the repository at this point in the history
"Far each ..." should be "For each ..."
  • Loading branch information
jahs-tech authored Feb 16, 2023
1 parent 36937a7 commit b865dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/using-bitfields.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
As Rust does not support bitfields, Bindgen generates a struct for each with the following characteristics
* Immutable getter functions for each bitfield named ```<bitfield>```
* Setter functions for each contiguous block of bitfields named ```set_<bitfield>```
* Far each contiguous block of bitfields, Bindgen emits an opaque physical field that contains one or more logical bitfields
* For each contiguous block of bitfields, Bindgen emits an opaque physical field that contains one or more logical bitfields
* A static constructor ```new_bitfield_{1, 2, ...}``` with a parameter for each bitfield contained within the opaque physical field.

## Bitfield examples
Expand Down

0 comments on commit b865dbd

Please sign in to comment.