Skip to content

Commit

Permalink
Merge pull request #3647 from onflow/bastian/pub-priv-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent authored Oct 30, 2024
2 parents 63d3591 + aceb884 commit 335ace9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions docs/cadence.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ importDeclaration
access
: (* Not specified *)
| Priv
| Pub ( '(' Set ')' )?
| Access '(' ( Self | Contract | Account | All ) ')'
| Access '(' ( Self | Contract | Account | All | identifier) ')'
;
compositeDeclaration
Expand Down Expand Up @@ -224,7 +222,7 @@ nominalType
;
functionType
: Fun '('
: Fun '('
( typeAnnotation ( ',' typeAnnotation )* )?
')'
( ':' typeAnnotation )?
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ contains command-line tools that are useful when working on the implementation f
```

```
$ echo 'pub fun main () { log("Hello, world!") }' > hello.cdc
$ echo 'access(all) fun main () { log("Hello, world!") }' > hello.cdc
$ go run ./cmd/main hello.cdc
"Hello, world!"
```
Expand Down

0 comments on commit 335ace9

Please sign in to comment.