From 69e5d985248e50567b71829405a294d66049810c Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Sun, 21 Jan 2024 00:30:12 +0800 Subject: [PATCH] typo --- guide/getting-started/grammar-and-types.md | 4 ++-- zh/guide/getting-started/grammar-and-types.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/getting-started/grammar-and-types.md b/guide/getting-started/grammar-and-types.md index 222e32e..9c2d3d7 100644 --- a/guide/getting-started/grammar-and-types.md +++ b/guide/getting-started/grammar-and-types.md @@ -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 @@ -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"`. \ No newline at end of file +For example `1`, `true`, `"str"`. diff --git a/zh/guide/getting-started/grammar-and-types.md b/zh/guide/getting-started/grammar-and-types.md index 39b2ea5..c92fc12 100644 --- a/zh/guide/getting-started/grammar-and-types.md +++ b/zh/guide/getting-started/grammar-and-types.md @@ -89,7 +89,7 @@ macro const v: int = 1; 同时,使用关键字作为标识符的行为是未定义的。 -合法的标识符示例:`Number_hits`、`temp99`。 +合法的标识符示例:`NumberHits`、`temp99`。 ### 声明变量 @@ -230,4 +230,4 @@ var n: int = "123"; 在 WhirlScript 中,你可以使用各种字面量。这些字面量是脚本中按字面意思给出的固定的值,而不是变量。 -例如 `1`、`true`、`"str"`。 \ No newline at end of file +例如 `1`、`true`、`"str"`。