diff --git a/changelogs/unreleased/809-dark64 b/changelogs/unreleased/809-dark64 new file mode 100644 index 00000000..3481fc4b --- /dev/null +++ b/changelogs/unreleased/809-dark64 @@ -0,0 +1 @@ +Add ability to import multiple symbols in a single import statement \ No newline at end of file diff --git a/zokrates_book/src/language/imports.md b/zokrates_book/src/language/imports.md index 3f6995fa..f8592c0e 100644 --- a/zokrates_book/src/language/imports.md +++ b/zokrates_book/src/language/imports.md @@ -13,6 +13,12 @@ from "./path/to/my/module" import MySymbol // `MySymbol` is now in scope. ``` +To import multiple modules with a single import statement, separate the module names with commas: + +```zokrates +from "./path/to/my/module" import MySymbol, MyOtherSymbol +``` + #### Aliasing The `as` keyword enables renaming symbols: