diff options
author | Rudy Affandi <rudy@adnetinc.com> | 2015-10-31 11:31:30 -0700 |
---|---|---|
committer | Rudy Affandi <rudy@adnetinc.com> | 2015-10-31 11:31:30 -0700 |
commit | 8670035d19f1b0002344f0e17d2e09ce19223e7f (patch) | |
tree | bb5c3cd1a7a2b5b03f6cb5cfbb239e17038e067f | |
parent | 5b0db44e7c5f0a69dfa670eee13fbc011f76830a (diff) |
Add a note regarding string value of "1"
Because some YAML parser will always assume that 1 is boolean for true.
-rw-r--r-- | yaml.html.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yaml.html.markdown b/yaml.html.markdown index 6e3e2c94..1d12fad7 100644 --- a/yaml.html.markdown +++ b/yaml.html.markdown @@ -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 |