Skip to content

Commit 9f4ec7f

Browse files
committed
fix typos
1 parent 421918e commit 9f4ec7f

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

‎next/language/attributes.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ remove an optional parameter.
126126
:class: top-level
127127
#label_migration(x, fill=true)
128128
#label_migration(y, fill=false)
129-
fn f(x~: Int = 0, y~: Int = 1) -> Unit { ... }
129+
fn f(x?: Int = 0, y?: Int = 1) -> Unit { ... }
130130
fn main {
131131
f(x=1, y=1) // warn on y being filled
132132
f() // warn on x not being filled
@@ -176,7 +176,7 @@ using the alias; otherwise, the alias can be used without warnings.
176176
## Visibility Attribute
177177

178178
```{note}
179-
This topic does not covered the access control. To lean more about `pub`, `pub(all)` and `priv`, see [Access Control](./packages.md#access-control).
179+
This topic does not covered the access control. To learn more about `pub`, `pub(all)` and `priv`, see [Access Control](./packages.md#access-control).
180180
```
181181

182182
The `#visibility` attribute is similar to the `#deprecated` attribute, but it is used to hint that a type will change its visibility in the future.
@@ -254,7 +254,6 @@ The `#callsite` attribute is used to mark properties that happen at callsite.
254254
It could be `autofill`, which is to autofill the arguments [SourceLoc and ArgLoc](/language/fundamentals.md#autofill-arguments)
255255
at callsite.
256256

257-
258257
## Skip Attribute
259258

260259
The `#skip` attribute is used to skip a single test block. The type checking will still be performed.

‎next/locales/zh_CN/LC_MESSAGES/language.po‎

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: MoonBit Document \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-11-25 10:49+0800\n"
11+
"POT-Creation-Date: 2025-12-04 18:14+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: zh_CN\n"
@@ -699,7 +699,7 @@ msgstr "`msg`参数是一个字符串,用于提供额外的信息,告诉使
699699
msgid ""
700700
"#label_migration(x, fill=true)\n"
701701
"#label_migration(y, fill=false)\n"
702-
"fn f(x~: Int = 0, y~: Int = 1) -> Unit { ... }\n"
702+
"fn f(x?: Int = 0, y?: Int = 1) -> Unit { ... }\n"
703703
"fn main {\n"
704704
" f(x=1, y=1) // warn on y being filled\n"
705705
" f() // warn on x not being filled\n"
@@ -764,8 +764,8 @@ msgstr "`visibility` 注解"
764764

765765
#: ../../language/attributes.md:179
766766
msgid ""
767-
"This topic does not covered the access control. To lean more about `pub`,"
768-
" `pub(all)` and `priv`, see [Access Control](./packages.md#access-"
767+
"This topic does not covered the access control. To learn more about "
768+
"`pub`, `pub(all)` and `priv`, see [Access Control](./packages.md#access-"
769769
"control)."
770770
msgstr ""
771771
"这里的文档不涉及访问控制。关于如何使用`pub`、`pub(all)` 和 `priv`, 见 [访问控制](./packages.md"
@@ -931,8 +931,8 @@ msgid ""
931931
"`moon.pkg.json`. For more detail, see [alert "
932932
"warning](../toolchain/moon/package.md#alert-warning)."
933933
msgstr ""
934-
"`alert`警告可以通过配置`moon.pkg.json`中的`warn-list`选项来关闭。关于更多的细节,见 "
935-
"[alert 警告](../toolchain/moon/package.md#alert-list)."
934+
"`alert`警告可以通过配置`moon.pkg.json`中的`warn-list`选项来关闭。关于更多的细节,见 [alert "
935+
"警告](../toolchain/moon/package.md#alert-list)."
936936

937937
#: ../../language/attributes.md:221
938938
msgid "External Attribute"
@@ -1022,27 +1022,27 @@ msgstr ""
10221022
"它可以是 `autofill`,用于在调用位置自动填充参数 [SourceLoc 和 "
10231023
"ArgLoc](/language/fundamentals.md#autofill-arguments)。"
10241024

1025-
#: ../../language/attributes.md:258
1025+
#: ../../language/attributes.md:257
10261026
msgid "Skip Attribute"
10271027
msgstr "`skip` 注解"
10281028

1029-
#: ../../language/attributes.md:260
1029+
#: ../../language/attributes.md:259
10301030
msgid ""
10311031
"The `#skip` attribute is used to skip a single test block. The type "
10321032
"checking will still be performed."
10331033
msgstr "`#skip` 注解用于跳过一个测试块。类型检查仍然会被执行。"
10341034

1035-
#: ../../language/attributes.md:262
1035+
#: ../../language/attributes.md:261
10361036
msgid "Configuration attribute"
10371037
msgstr "`cfg` 注解"
10381038

1039-
#: ../../language/attributes.md:264
1039+
#: ../../language/attributes.md:263
10401040
msgid ""
10411041
"The `#cfg` attribute is used to perform conditional compilation. Examples"
10421042
" are:"
10431043
msgstr "`#cfg` 注解用于执行条件编译。例子有:"
10441044

1045-
#: ../../language/attributes.md:268
1045+
#: ../../language/attributes.md:267
10461046
msgid ""
10471047
"#cfg(true)\n"
10481048
"#cfg(false)\n"
@@ -21030,3 +21030,13 @@ msgstr ""
2103021030
#~ msgid "`_[_:_]` for the as view operator"
2103121031
#~ msgstr ""
2103221032

21033+
#~ msgid ""
21034+
#~ "#label_migration(x, fill=true)\n"
21035+
#~ "#label_migration(y, fill=false)\n"
21036+
#~ "fn f(x~: Int = 0, y~: Int = 1) -> Unit { ... }\n"
21037+
#~ "fn main {\n"
21038+
#~ " f(x=1, y=1) // warn on y being filled\n"
21039+
#~ " f() // warn on x not being filled\n"
21040+
#~ "}"
21041+
#~ msgstr ""
21042+

0 commit comments

Comments
 (0)