Skip to content

Commit

Permalink
chore: Update integers.md to note support for Fields using `from_inte…
Browse files Browse the repository at this point in the history
…ger` (#4536)

Resolves #4524
  • Loading branch information
n4ru authored and TomAFrench committed Apr 3, 2024
1 parent 3c74a0e commit be558d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/noir/concepts/data_types/integers.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The built-in structure `U128` allows you to use 128-bit unsigned integers almost
- You cannot cast between a native integer and `U128`
- There is a higher performance cost when using `U128`, compared to a native type.

Conversion between unsigned integer types and U128 are done through the use of `from_integer` and `to_integer` functions.
Conversion between unsigned integer types and U128 are done through the use of `from_integer` and `to_integer` functions. `from_integer` also accepts the `Field` type as input.

```rust
fn main() {
Expand Down

0 comments on commit be558d0

Please sign in to comment.