summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRudy Affandi <rudy@adnetinc.com>2015-10-31 11:31:30 -0700
committerRudy Affandi <rudy@adnetinc.com>2015-10-31 11:31:30 -0700
commit8670035d19f1b0002344f0e17d2e09ce19223e7f (patch)
treebb5c3cd1a7a2b5b03f6cb5cfbb239e17038e067f
parent5b0db44e7c5f0a69dfa670eee13fbc011f76830a (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.markdown2
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