summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGareth Jones <[email protected]>2024-01-27 09:59:38 +1300
committergit <[email protected]>2024-09-09 06:40:59 +0000
commitaed8e46118e592a9d7752f6e1cd48a5fad07d941 (patch)
tree61fb8d0fd530d1828643d232d6a83e3463eaa692
parentd52e599538fb67535c95d86aec89fd7e53c61818 (diff)
[ruby/psych] docs: specify correct default `fallback` value
https://github.com/ruby/psych/commit/ce7946981d
-rw-r--r--ext/psych/lib/psych.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
index d87bd9040a..e96b752347 100644
--- a/ext/psych/lib/psych.rb
+++ b/ext/psych/lib/psych.rb
@@ -340,7 +340,7 @@ module Psych
# provided, the object contained in the first document will be returned.
# +filename+ will be used in the exception message if any exception
# is raised while parsing. If +yaml+ is empty, it returns
- # the specified +fallback+ return value, which defaults to +false+.
+ # the specified +fallback+ return value, which defaults to +nil+.
#
# Raises a Psych::SyntaxError when a YAML syntax error is detected.
#
@@ -667,7 +667,7 @@ module Psych
###
# Safely loads the document contained in +filename+. Returns the yaml contained in
# +filename+ as a Ruby object, or if the file is empty, it returns
- # the specified +fallback+ return value, which defaults to +false+.
+ # the specified +fallback+ return value, which defaults to +nil+.
# See safe_load for options.
def self.safe_load_file filename, **kwargs
File.open(filename, 'r:bom|utf-8') { |f|
@@ -678,7 +678,7 @@ module Psych
###
# Loads the document contained in +filename+. Returns the yaml contained in
# +filename+ as a Ruby object, or if the file is empty, it returns
- # the specified +fallback+ return value, which defaults to +false+.
+ # the specified +fallback+ return value, which defaults to +nil+.
# See load for options.
def self.load_file filename, **kwargs
File.open(filename, 'r:bom|utf-8') { |f|