Skip to content

Commit e341d12

Browse files
authored
配列とオブジェクトの古い記法についての記述を更新 [ci skip] (#26)
1 parent cca5de6 commit e341d12

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/en/guides/get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ this is a multi-line comment
4949
| String | `str` | `"kawaii"` |
5050
| Number | `num` | `42` |
5151
| Boolean | `bool` | `true` / `false` |
52-
| Array | `arr` | `["ai" "chan" "cute"]` |
53-
| Object | `obj` | `{ foo: "bar"; a: 42; }` |
52+
| Array | `arr` | `["ai", "chan", "cute"]` |
53+
| Object | `obj` | `{ foo: "bar", a: 42 }` |
5454
| Null | `null` | `null` |
5555
| Function | `fn` | `@(x) { x }` |
5656
| Error | `error` | *(TODO)* |
@@ -92,7 +92,7 @@ print(message)
9292

9393
## Arrays
9494

95-
Declare arrays by listing expressions within `[]`, separated by spaces:
95+
Declare arrays by listing expressions within `[]`, separated by `,`:
9696

9797
```aiscript
9898
["ai", "chan", "kawaii"]
@@ -110,7 +110,7 @@ let arr = ["ai", "chan", "kawaii"]
110110

111111
Objects in AiScript are similar to associative arrays with string-only keys. Each element consists of a key and a value, called a **property**.
112112

113-
Write properties within `{}`, separated by `,`, `;`, or whitespace. Use `:` to separate keys and values:
113+
Write properties within `{}`, separated by `,` or newlines. Use `:` to separate keys and values:
114114

115115
```aiscript
116116
{

docs/ja/guides/get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ this is a comment
4747
<tr><td>文字列</td><td><code>str</code></td><td><code>"kawaii"</code></td></tr>
4848
<tr><td>数値</td><td><code>num</code></td><td><code>42</code></td></tr>
4949
<tr><td>真理値</td><td><code>bool</code></td><td><code>true</code>/<code>false</code></td></tr>
50-
<tr><td>配列</td><td><code>arr</code></td><td><code>["ai" "chan" "cute"]</code></td></tr>
51-
<tr><td>オブジェクト</td><td><code>obj</code></td><td><code>{ foo: "bar"; a: 42; }</code></td></tr>
50+
<tr><td>配列</td><td><code>arr</code></td><td><code>["ai", "chan", "cute"]</code></td></tr>
51+
<tr><td>オブジェクト</td><td><code>obj</code></td><td><code>{ foo: "bar", a: 42 }</code></td></tr>
5252
<tr><td>null</td><td><code>null</code></td><td><code>null</code></td></tr>
5353
<tr><td>関数</td><td><code>fn</code></td><td><code>@(x) { x }</code></td></tr>
5454
<tr><td>エラー</td><td><code>error</code></td><td><code>(TODO)</code></td></tr>
@@ -84,7 +84,7 @@ print(message)
8484
```
8585

8686
## 配列
87-
`[]`の中に式をスペースで区切って列挙します
87+
`[]`の中に式を`,`で区切って列挙します
8888
```aiscript
8989
["ai", "chan", "kawaii"]
9090
```
@@ -101,7 +101,7 @@ let arr = ["ai", "chan", "kawaii"]
101101
AiScriptにおけるオブジェクトは文字列のみをキーとした連想配列のようなものとなっています。
102102
キーと値から構成される各要素をプロパティと呼びます。
103103
この時キーをプロパティ名と呼びます。
104-
`{}`の中にプロパティを`,`/`;`/空白で区切って列挙します
104+
`{}`の中にプロパティを`,`か改行で区切って列挙します
105105
プロパティ名と値は`: `で区切ります。
106106
```aiscript
107107
{

0 commit comments

Comments
 (0)