Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluemangoo committed Jan 20, 2024
1 parent e3a3b14 commit 69e5d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions guide/getting-started/grammar-and-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Note that these two symbols will be parsed as ordinary operators.

At the same time, the behavior of using keywords as identifiers is undefined.

Examples of legal identifiers: `Number_hits`, `temp99`.
Examples of legal identifiers: `NumberHits`, `temp99`.

### Declaring Variables

Expand Down Expand Up @@ -228,4 +228,4 @@ The compiler will not check whether your conversion is legal. Please use it **ca

In WhirlScript, you can use various literals. These literals are fixed values given in the script literally, not variables.

For example `1`, `true`, `"str"`.
For example `1`, `true`, `"str"`.
4 changes: 2 additions & 2 deletions zh/guide/getting-started/grammar-and-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ macro const v: int = 1;

同时,使用关键字作为标识符的行为是未定义的。

合法的标识符示例:`Number_hits``temp99`
合法的标识符示例:`NumberHits``temp99`

### 声明变量

Expand Down Expand Up @@ -230,4 +230,4 @@ var n: int = <int>"123";

在 WhirlScript 中,你可以使用各种字面量。这些字面量是脚本中按字面意思给出的固定的值,而不是变量。

例如 `1``true``"str"`
例如 `1``true``"str"`

0 comments on commit 69e5d98

Please sign in to comment.