Skip to content

Commit

Permalink
Make spec neutral regarding array-of-table naming style (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianSi authored Dec 9, 2022
1 parent c6730f8 commit 913ff56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -897,13 +897,13 @@ each subsequent instance creates and defines a new table element in that array.
The tables are inserted into the array in the order encountered.

```toml
[[products]]
[[product]]
name = "Hammer"
sku = 738594937

[[products]] # empty table within the array
[[product]] # empty table within the array

[[products]]
[[product]]
name = "Nail"
sku = 284758393

Expand All @@ -914,7 +914,7 @@ In JSON land, that would give you the following structure.

```json
{
"products": [
"product": [
{ "name": "Hammer", "sku": 738594937 },
{},
{ "name": "Nail", "sku": 284758393, "color": "gray" }
Expand Down

0 comments on commit 913ff56

Please sign in to comment.