-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
37e5a67
commit 9e41a84
Showing
4 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
id: public | ||
title: public | ||
--- | ||
|
||
import Syntax from '@theme/Syntax'; | ||
|
||
<Syntax syntax="cameligo"> | ||
|
||
The attribute `[@public]` labels a declaration as available to be called by other pieces of code. | ||
Because code is public by default in CameLIGO, this attribute is not needed in that syntax. | ||
|
||
</Syntax> | ||
|
||
<Syntax syntax="jsligo"> | ||
|
||
The decorator `@public` labels a declaration as available to be called by other pieces of code, similar to the `export` keyword. | ||
This decorator is needed only when you want to make a namespace available to code in other files, as described in [Importing namespaces](../../preprocessor/import#importing-namespaces). | ||
|
||
</Syntax> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters