Skip to content

Commit 6de8059

Browse files
authored
Merge pull request #859 from eksortso/i846_dot_def_tables
2 parents 8296d6b + 1b0b884 commit 6de8059

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## unreleased
44

5-
Nothing.
5+
* Clarify where and how dotted keys define tables.
66

77
## 1.0.0 / 2021-01-11
88

toml.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,9 @@ name = "Regina Dogman"
760760
member_since = 1999-08-04
761761
```
762762

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

766767
```toml
767768
fruit.apple.color = "red"

0 commit comments

Comments
 (0)