Skip to content

Commit cb9d52b

Browse files
Clarify TOML array table comment (#682)
Co-authored-by: multicode <multicode@yawk.at>
1 parent cd235e7 commit cb9d52b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

toml/src/main/java/tools/jackson/dataformat/toml/TomlParser.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,8 @@ private FieldRef parseAndEnterKey(
176176
/* "Any reference to an array of tables points to the most recently defined table element of the array.
177177
* This allows you to define sub-tables, and even sub-arrays of tables, inside the most recent table."
178178
*
179-
* I interpret this somewhat broadly: I accept such references even if there were unrelated tables
180-
* in between, and I accept them for simple dotted keys as well (not just for tables). These cases don't
181-
* seem to be covered by the specification.
179+
* I interpret this somewhat broadly for table headers: I accept such references even if there were
180+
* unrelated tables in between. This case doesn't seem to be covered by the specification.
182181
*/
183182
TomlArrayNode array = (TomlArrayNode) existing;
184183
if (array.closed) {

0 commit comments

Comments
 (0)