Skip to content

Commit 86aabf1

Browse files
author
Vitaly Puzrin
authored
Merge pull request #574 from JounQin/patch-1
docs: `number` and `null` could be returned by `safeLoad`
2 parents 34e5072 + 7cfaab8 commit 86aabf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ try {
9696
### safeLoad (string [ , options ])
9797

9898
**Recommended loading way.** Parses `string` as single YAML document. Returns either a
99-
plain object, a string or `undefined`, or throws `YAMLException` on error. By default, does
99+
plain object, a string, a number, `null` or `undefined`, or throws `YAMLException` on error. By default, does
100100
not support regexps, functions and undefined. This method is safe for untrusted data.
101101

102102
options:

0 commit comments

Comments
 (0)