From ae1d18ad91a8563afe0e567f22912e6227be1a45 Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Fri, 11 Nov 2016 13:34:19 -0800 Subject: [yaml/en] Fix #2558 1 is interpreted as a number not as a boolean. For a boolean use we use true --- yaml.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaml.html.markdown b/yaml.html.markdown index a1ef0d38..95adbd83 100644 --- a/yaml.html.markdown +++ b/yaml.html.markdown @@ -25,9 +25,9 @@ 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 +# The number 1 will be interpreted as a number, not a boolean. if you want +# it to be intepreted as a boolean, use true boolean: true null_value: null key with spaces: value -- cgit v1.2.3