Skip to content

Commit

Permalink
Clarify where and how dotted keys define tables
Browse files Browse the repository at this point in the history
  • Loading branch information
eksortso committed Sep 6, 2021
1 parent 3b11f69 commit 7f19cf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

## unreleased

Nothing.
* Clarify where and how dotted keys define tables.

## 1.0.0 / 2021-01-11

Expand Down
5 changes: 3 additions & 2 deletions toml.md
Expand Up @@ -759,8 +759,9 @@ name = "Regina Dogman"
member_since = 1999-08-04
```

Dotted keys create and define a table for each key part before the last one,
provided that such tables were not previously created.
Dotted keys create and define a table for each key part before the last one. Any
such table must have all its key/value pairs defined under the current `[table]`
header, or in the root table if defined before all headers.

```toml
fruit.apple.color = "red"
Expand Down

0 comments on commit 7f19cf4

Please sign in to comment.