mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
update toml doc and fix typos
This commit is contained in:
parent
2dde374091
commit
220005db0c
@ -32,7 +32,7 @@ boolean = true
|
|||||||
dateTime = 1979-05-27T07:32:00-08:00
|
dateTime = 1979-05-27T07:32:00-08:00
|
||||||
scientificNotation = 1e+12
|
scientificNotation = 1e+12
|
||||||
"key can be quoted" = true # Both " and ' are fine
|
"key can be quoted" = true # Both " and ' are fine
|
||||||
"key may contains" = "letters, numbers, underscores, and dashes"
|
"key may contain" = "letters, numbers, underscores, and dashes"
|
||||||
|
|
||||||
# A bare key must be non-empty, but an empty quoted key is allowed
|
# A bare key must be non-empty, but an empty quoted key is allowed
|
||||||
"" = "blank" # VALID but discouraged
|
"" = "blank" # VALID but discouraged
|
||||||
@ -225,26 +225,26 @@ color = "gray"
|
|||||||
# sub-table will belong to the nearest table element above it.
|
# sub-table will belong to the nearest table element above it.
|
||||||
|
|
||||||
[[fruit]]
|
[[fruit]]
|
||||||
name = "apple"
|
name = "apple" # I am a property in fruit table/map
|
||||||
|
|
||||||
[fruit.Geometry]
|
[fruit.geometry]
|
||||||
shape = "round"
|
shape = "round"
|
||||||
note = "I am an fruit's property"
|
note = "I am a property in geometry table/map"
|
||||||
|
|
||||||
[[fruit.color]]
|
[[fruit.color]]
|
||||||
name = "red"
|
name = "red"
|
||||||
note = "I am an array's item in apple"
|
note = "I am an array item in apple fruit's table/map"
|
||||||
|
|
||||||
[[fruit.color]]
|
[[fruit.color]]
|
||||||
name = "green"
|
name = "green"
|
||||||
note = "I am in the same array than red"
|
note = "I am in the same array as red"
|
||||||
|
|
||||||
[[fruit]]
|
[[fruit]]
|
||||||
name = "banana"
|
name = "banana"
|
||||||
|
|
||||||
[[fruit.color]]
|
[[fruit.color]]
|
||||||
name = "yellow"
|
name = "yellow"
|
||||||
note = "I am an array's item too but banana's one"
|
note = "I am an array item in banana fruit's table/map"
|
||||||
```
|
```
|
||||||
|
|
||||||
In JSON land, this code will be:
|
In JSON land, this code will be:
|
||||||
|
Loading…
Reference in New Issue
Block a user