Skip to content

Commit

Permalink
brain issue
Browse files Browse the repository at this point in the history
  • Loading branch information
notch1p authored and peter-jerry-ye committed Jul 16, 2024
1 parent 4be07ff commit c9f09ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Statements include:

## Functions

Functions take arguments and produce a result. In MoonBit, functions are first-class, which means that functions can be arguments or return values of other functions. MoonBit's naming convention requires that function names should not begin with lowercase letters `[^a-z]`. Compare for constructors in the `Enum` section below.
Functions take arguments and produce a result. In MoonBit, functions are first-class, which means that functions can be arguments or return values of other functions. MoonBit's naming convention requires that function names should not begin with uppercase letters (A-Z). Compare for constructors in the `enum` section below.

### Top-Level Functions

Expand Down
2 changes: 1 addition & 1 deletion zh-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn init {
## 函数

函数接受参数并产生结果。
在 MoonBit 中,函数是一等公民,这意味着函数可以作为其他函数的参数或返回值。与下述的 `enum` 的类型构造子相对,MoonBit 的命名规则要求函数名不能以小写字母`[^a-z]`开头。
在 MoonBit 中,函数是一等公民,这意味着函数可以作为其他函数的参数或返回值。与下述的 `enum` 的类型构造子相对,MoonBit 的命名规则要求函数名不能以大写字母 (A-Z) 开头。

### 顶层函数

Expand Down

0 comments on commit c9f09ab

Please sign in to comment.