Skip to content

Commit 454b3c1

Browse files
authored
修改用词
declare改成了define
1 parent 441de8a commit 454b3c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/quickstart/02base/04top-statements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lastUpdated: true
44

55
# Top statement
66

7-
In MCFPP, allows programming statements in the start of the file and don’t need to declare extra function, that’s the top statement. Top statement places in a hidden function, each file have one and only one of this function, and it cannot be called externally. Its returned value’s type is `void`.
7+
In MCFPP, allows programming statements in the start of the file and don’t need to define extra function, that’s the top statement. Top statement places in a hidden function, each file have one and only one of this function, and it cannot be called externally. Its returned value’s type is `void`.
88

99
```mcfpp
1010
print("Top statement");
@@ -16,7 +16,7 @@ func main(){
1616

1717
After compiling, it’ll form two functions —— corresponding to main function and the default functions of top statement respectively.
1818

19-
Top statement only can program in the start of the file, which is before the declaration of any functions or classes. Top statement can call the other functions and classes that’s declared in the file.
19+
Top statement only can program in the start of the file, which is before the defination of any functions or classes. Top statement can call the other functions and classes that’s defined in the file.
2020

2121
```mcfpp
2222
main();

0 commit comments

Comments
 (0)