Skip to content

Commit 6f782d7

Browse files
authored
Some typos fixed in the extern_c documentation
1 parent 6ef63ed commit 6f782d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mkdocs/docs/circom-language/templates-and-components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ However, the way in which their computation is encoded is different from the one
201201

202202
### Extern C code in custom templates
203203

204-
As a new feature, one can add the key word `extern_c` to custom templates as in
204+
As a new feature, one can add the keyword `extern_c` to custom templates as in
205205
```
206206
template custom extern_c A() {
207207
signal input in;
@@ -211,10 +211,10 @@ template custom extern_c A() {
211211
}
212212
```
213213

214-
This feature has only impact when the compilation is used with the flag `--c` to generting C code as backend. Othewise, it is ignored.
214+
This feature has only an impact when the compilation is used with the flag `--c` to generate C code as backend. Otherwise, it is ignored.
215215

216216
When `extern_c` is used and the circom program is compiled with `--c`, the compiler outputs the following information for each `extern_c`:
217217
```
218-
*** The method void IsEqual(FrElement* out ,uint* size_out ,FrElement* in ,uint* size_in ); generated by the custom gate IsZero needs to be implemented ***
218+
*** The method void A(FrElement* out ,uint* size_out ,FrElement* in ,uint* size_in ); generated by the custom gate A needs to be implemented ***
219219
```
220220
A cpp file (or several) including all the needed functions must be included in the generated `name_cpp` folder. Then, running `make` an executable uising these external functions will be generated.

0 commit comments

Comments
 (0)