Skip to content

Commit

Permalink
Fix type list in key/value pairs section
Browse files Browse the repository at this point in the history
The old list only mentions the obsolete Datetime time instead of the 4
date/time types we have today. Backlinks to each type are added as well.

This rescues a change from the abandoned PR toml-lang#663, authored by @eksortso.
  • Loading branch information
ChristianSi committed Nov 8, 2019
1 parent 2d1af9f commit ac0b063
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,20 @@ on the same line (though some values can be broken over multiple lines).
key = "value"
```

Values must be of the following types: String, Integer, Float, Boolean,
Datetime, Array, or Inline Table. Unspecified values are invalid.
Values must have one of the following types.

- [String](#user-content-string)
- [Integer](#user-content-integer)
- [Float](#user-content-float)
- [Boolean](#user-content-boolean)
- [Offset Date-Time](#user-content-offset-date-time)
- [Local Date-Time](#user-content-local-date-time)
- [Local Date](#user-content-local-date)
- [Local Time](#user-content-local-time)
- [Array](#user-content-array)
- [Inline Table](#user-content-inline-table)

Unspecified values are invalid.

```toml
key = # INVALID
Expand Down

0 comments on commit ac0b063

Please sign in to comment.