Skip to content

Commit 8a940d5

Browse files
committed
fix(docs): correct exponentiation
1 parent 7172080 commit 8a940d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fn main(a: U120) {
235235
// this succeeds but it shouldn't!
236236
await noir.execute({
237237
a: {
238-
inner: 2n * 10n ** 120n + 1n,
238+
inner: 2n ** 120n + 1n,
239239
},
240240
});
241241
```
@@ -265,7 +265,7 @@ Now, if you pass a value that is larger than 2^120 to `a` in JavaScript, you wil
265265
// runtime error: "Assertion failed: call to assert_max_bit_size"
266266
await noir.execute({
267267
a: {
268-
inner: 2n * 10n ** 120n + 1n,
268+
inner: 2n ** 120n + 1n,
269269
},
270270
});
271271
```

0 commit comments

Comments
 (0)