Skip to content

Commit

Permalink
Merge pull request #574 from JounQin/patch-1
Browse files Browse the repository at this point in the history
docs: `number` and `null` could be returned by `safeLoad`
  • Loading branch information
Vitaly Puzrin committed Aug 10, 2020
2 parents 34e5072 + 7cfaab8 commit 86aabf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -96,7 +96,7 @@ try {
### safeLoad (string [ , options ])

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

options:
Expand Down

0 comments on commit 86aabf1

Please sign in to comment.