git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/toml/internal/toml-test/tests/valid/array/mixed-string-table.toml (about)

     1  contributors = [
     2    "Foo Bar <foo@example.com>",
     3    { name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
     4  ]
     5  
     6  # Start with a table as the first element. This tests a case that some libraries
     7  # might have where they will check if the first entry is a table/map/hash/assoc
     8  # array and then encode it as a table array. This was a reasonable thing to do
     9  # before TOML 1.0 since arrays could only contain one type, but now it's no
    10  # longer.
    11  mixed = [{k="a"}, "b", 1]