iden3/circom

Docs: Undefined {**} operator

Closed this issue · 2 comments

https://docs.circom.io/circom-language/basic-operators/

image

Ctrl+F {**} on that page linked above


Part way down the page, {**} gets used twice, and then never mentioned again.

** is defined (as exponentiation), but the { and } braces are not (at least not anywhere else on that page).

Unclear if it has a special meaning, or is just meant to help disambiguate nested parens, or specifying order of operations, or what exactly.

Permalink to relevant markdown file:

* ```x << k = (x*(2{**}k)~ & ~mask) % p ```
where b is the number of significant bits of p and mask is ```2{**}b - 1```.

Brackets must be removed from the documentation since they do not mean anything. Solved! Thanks