Skip to content

Commit

Permalink
Merge pull request #784 from RobTheCradle/main
Browse files Browse the repository at this point in the history
fix 文档中的语法问题修复
  • Loading branch information
AmazingAng authored Oct 19, 2024
2 parents 6e6dec4 + 9927a01 commit d8b8bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 03_Function/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Solidity语言的函数非常灵活,可以进行各种复杂操作。在本教
我们先看一下 Solidity 中函数的形式:

```solidity
function <function name>(<parameter types>) {internal|external|public|private} [pure|view|payable] [returns (<return types>)]
function <function name>([parameter types[, ...]]) {internal|external|public|private} [pure|view|payable] [returns (<return types>)]
```

看着有一些复杂,让我们从前往后逐个解释(方括号中的是可写可不
Expand All @@ -35,7 +35,7 @@ function <function name>(<parameter types>) {internal|external|public|private} [

2. `<function name>`:函数名。

3. `(<parameter types>)`:圆括号内写入函数的参数,即输入到函数的变量类型和名称。
3. `([parameter types[, ...]])`:圆括号内写入函数的参数,即输入到函数的变量类型和名称。

4. `{internal|external|public|private}`:函数可见性说明符,共有4种。

Expand Down

0 comments on commit d8b8bed

Please sign in to comment.