Skip to content

Commit

Permalink
fix sp
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaki committed Jan 10, 2025
1 parent a0c8065 commit 0e3833d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/explainers/explainer-writing-noir.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Note: when casting a `Field` to an integer type, the value is converted based on

`Field` types have their own underlying representation that is efficient for cryptography, which is different to binary representations efficient for CPUs. So, mathematically speaking, things like bitwise operations do not directly translate to fields. That said, the same outcome can be achieved if wanting to use the Field type as a number with lower overhead.

For instance shift (`<<`) and or (`|`) work seamlessly with integer types (bitpacking `u8`'s into a `u16`):
For instance shift (`<<`) and or (`|`) work seamlessly with integer types (bit-packing `u8`'s into a `u16`):
```
high as u16 << 8 | low as u16
```
Expand Down

0 comments on commit 0e3833d

Please sign in to comment.