Skip to content

Commit

Permalink
Merge branch 'sainati/access-all-formatting' of github.com:onflow/cad…
Browse files Browse the repository at this point in the history
…ence-lang.org into sainati/access-all-formatting
  • Loading branch information
dsainati1 committed Dec 22, 2023
2 parents 0dbf7da + dafd6ee commit 89dc9c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions versioned_docs/version-1.0/language/contract-updatability.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ A field may belong to a contract, struct, resource, or interface.
access(all)
contract Foo {
access(all)
var a: String
}
Expand All @@ -189,6 +190,7 @@ A field may belong to a contract, struct, resource, or interface.
access(all)
contract Foo {
access(all)
var a: Int // Invalid type change
}
Expand Down
2 changes: 2 additions & 0 deletions versioned_docs/version-1.0/language/contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ but they have to be in the contract and not another top-level definition.
//
access(all)
resource Vault {}
access(all)
struct Hat {}
access(all)
fun helloWorld(): String {}
let num: Int
Expand Down

0 comments on commit 89dc9c7

Please sign in to comment.