Skip to content

Commit 29cc937

Browse files
committed
chore: bump don’t
Signed-off-by: peefy <[email protected]>
1 parent 72de0c8 commit 29cc937

File tree

45 files changed

+108
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+108
-108
lines changed

docs/reference/lang/error/exception.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Possible resolution:
6363

6464
KCL will report `TabError` when KCL has a tab and white space syntax error.
6565

66-
In KCL, it is forbidden to mix tabs and four spaces in one indentation block. And we recommend only using white spaces or tabs for indentation in the entire KCL project, dont mix them.
66+
In KCL, it is forbidden to mix tabs and four spaces in one indentation block. And we recommend only using white spaces or tabs for indentation in the entire KCL project, don't mix them.
6767

6868
For example:
6969

docs/reference/lang/tour.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ may span multiple lines.
307307
"""
308308
```
309309

310-
Please note that there is almost no difference in the use of KCL single-quoted and double-quoted strings. The only thing that can be simplified is that we dont need to escape double quotes in single quoted strings, and we dont need to escape single quotes in double quoted strings.
310+
Please note that there is almost no difference in the use of KCL single-quoted and double-quoted strings. The only thing that can be simplified is that we don't need to escape double quotes in single quoted strings, and we don't need to escape single quotes in double quoted strings.
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
We can concatenate strings using the `+` operator:
@@ -428,7 +428,7 @@ See [Yaml Multiline String](https://yaml-multiline.info/) and [YAML Specificatio
428428

429429
##### Raw String
430430

431-
KCL raw string is created by prefixing a string literal with `'r'` or `'R'`. KCL raw string treats backslash (`\`) and string interpolation (`${}`) as a literal character. This is useful when we want to have a string that contains backslash, string interpolation and dont want them to be treated as an escape character.
431+
KCL raw string is created by prefixing a string literal with `'r'` or `'R'`. KCL raw string treats backslash (`\`) and string interpolation (`${}`) as a literal character. This is useful when we want to have a string that contains backslash, string interpolation and don't want them to be treated as an escape character.
432432

433433
- For backslash (`\`), the KCL code and output YAML are as follows:
434434

@@ -1715,7 +1715,7 @@ a: any = "s"
17151715
b: int = a as int # Error: The `str` type cannot be converted to the `int` type
17161716
```
17171717

1718-
If we dont want to throw a runtime error, we can use the type guard for defensive coding with `if` expressions.
1718+
If we don't want to throw a runtime error, we can use the type guard for defensive coding with `if` expressions.
17191719

17201720
```python
17211721
a: any = "s"

docs/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ x: "a: 1, b: Two, c: 12.3"
586586
There is little difference between KCL single-quoted and double-quoted strings. The only difference is that we don't need to use `\"` to escape `"` in single-quoted strings, and we don't need to use `\'` to escape `'` in double-quoted strings.
587587

588588
```python
589-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
590-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
589+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
590+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
591591
```
592592

593593
In addition, a long string consisting of three single quotes or three double quotes does not need to be escaped (except for the beginning and end of the string), such as the following example:

i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.3/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.3/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.4/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.4/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.6/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.6/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.6/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.6/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.7/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.7/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.8/reference/lang/tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ may span multiple lines.
310310
请注意,KCL 的单引号和双引号字符串的使用几乎没有区别。唯一可以简化的是,我们不需要在单引号字符串中转义双引号,也不需要在双引号中转义单引号。
311311

312312
```python
313-
'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
314-
"This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
313+
'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
314+
"This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
315315
```
316316

317317
我们可以使用 `+` 操作符连接字符串:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.8/user_docs/support/faq-kcl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ x: "a: 1, b: Two, c: 12.3"
588588
KCL 单引号和双引号字符串几乎没有区别。唯一的区别是,不需要在单引号字符串中使用 `\"` 转义双引号 `"`,不需要在双引号字符串中使用 `\'` 转义单引号引号 `'`。
589589

590590
```python
591-
singleQuotedString = 'This is my book named "foo"' # Don’t need to escape double quotes in single quoted strings.
592-
doubleQuotedString = "This is my book named 'foo'" # Don’t need to escape single quotes in double quoted strings.
591+
singleQuotedString = 'This is my book named "foo"' # don't need to escape double quotes in single quoted strings.
592+
doubleQuotedString = "This is my book named 'foo'" # don't need to escape single quotes in double quoted strings.
593593
```
594594

595595
此外在 KCL 中,使用三个单引号或者三个双引号组成的长字符串,无需在其中对单引号或者三引号进行转义 (除字符串首尾),比如如下例子:

versioned_docs/version-0.4.3/reference/lang/error/exception.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Possible resolution:
6262

6363
KCL will report `KCLTabError` when KCL has a tab and white space syntax error.
6464

65-
In KCL, it is forbidden to mix tabs and four spaces in one indentation block. And we recommend only using white spaces or tabs for indentation in the entire KCL project, dont mix them.
65+
In KCL, it is forbidden to mix tabs and four spaces in one indentation block. And we recommend only using white spaces or tabs for indentation in the entire KCL project, don't mix them.
6666

6767
The `ewcode` of `KCLTabError` is `E1002`.
6868

0 commit comments

Comments
 (0)