Skip to content

Commit

Permalink
Merge pull request #1074 from graphite/patch-1
Browse files Browse the repository at this point in the history
Fix docs to properly limit variable size
  • Loading branch information
aPere3 authored Dec 10, 2024
2 parents f0e0a08 + 7efe5bd commit 2a1f449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/compilation/composing_functions_with_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ from concrete import fhe
class Counter:
@fhe.function({"x": "encrypted"})
def inc(x):
return x + 1 % 20
return (x + 1) % 20

@fhe.function({"x": "encrypted"})
def dec(x):
return x - 1 % 20
return (x - 1) % 20
```

Then, to compile the `Counter` module, use the `compile` method with a dictionary of input-sets for each function:
Expand Down

0 comments on commit 2a1f449

Please sign in to comment.