Skip to content

Commit

Permalink
docs(30): update public (#835)
Browse files Browse the repository at this point in the history
update public
  • Loading branch information
XdpCs authored Nov 5, 2024
1 parent b593015 commit 4ab1b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 30_TryCatch/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tags:

## `try-catch`

`Solidity`中,`try-catch`只能被用于`external`函数或创建合约时`constructor`(被视为`external`函数)的调用。基本语法如下:
`Solidity`中,`try-catch`只能被用于`external`函数或`public`函数或创建合约时`constructor`(被视为`external`函数)的调用。基本语法如下:

```solidity
try externalContract.f() {
Expand Down

0 comments on commit 4ab1b9b

Please sign in to comment.