Skip to content

Commit

Permalink
Merge pull request #241 from ddl-hust/master
Browse files Browse the repository at this point in the history
fix:constraint-generation doc
  • Loading branch information
clararod9 authored Feb 27, 2024
2 parents 6cf7420 + 217198f commit f652312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs/docs/circom-language/constraint-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ out <== 1 - a*b;
Which is equivalent to:

```text
out === 1 – a*b;
out <-- 1 - a*b;
out === 1 – a*b;
```

As mentioned before, assigning a value to a signal using `<--` and `-->` is considered dangerous and should, in general, be combined with adding constraints with `===`, which describe by means of constraints which the assigned values are. For example:
Expand Down

0 comments on commit f652312

Please sign in to comment.