Skip to content

Commit 9166b0a

Browse files
Update global_variables.md
1 parent 70bd03e commit 9166b0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/v3/documentation/smart-contracts/func/docs/global_variables.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ int main() {
2525

2626
In this example, the global variable `op` is assigned the addition operator `_+_`. The program then verifies the associativity of addition using three sample integers: 2, 3, and 9.
2727

28-
Under the hood, global variables in FunC are stored in the `c7` control register of the TVM.
28+
Under the hood, global variables in FunC are stored in the `c7` control register of the TVM, with a maximum limit of 31 variables.
2929

30-
:::info
31-
Please note that FunC uses `SETGLOB` and `GETGLOB` instructions which are limited to 31 global variables
32-
:::
3330

3431
In FunC, you can _omit the type_ of global variable.
3532
In this case, the compiler determines the type based on how the variable is used.

0 commit comments

Comments
 (0)