mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 23:33:00 +03:00
Add a note regarding string value of "1"
Because some YAML parser will always assume that 1 is boolean for true.
This commit is contained in:
parent
5b0db44e7c
commit
8670035d19
@ -24,6 +24,8 @@ YAML doesn't allow literal tab characters at all.
|
||||
key: value
|
||||
another_key: Another value goes here.
|
||||
a_number_value: 100
|
||||
# If you want to use number 1 as a value, you have to enclose it in quotes,
|
||||
# otherwise, YAML parser will assume that it is a boolean value of true.
|
||||
scientific_notation: 1e+12
|
||||
boolean: true
|
||||
null_value: null
|
||||
|
Loading…
Reference in New Issue
Block a user