summaryrefslogtreecommitdiff
path: root/lib/psych.rb
diff options
context:
space:
mode:
authorZachary Scott <zachary@zacharyscott.net>2013-01-03 01:07:28 -0500
committerZachary Scott <zachary@zacharyscott.net>2013-01-03 01:07:34 -0500
commit6a3ac11a78827f21054b2ec6492683d5b4db20e7 (patch)
tree3df9f4d2c7e130d70e390965351320daa91247b7 /lib/psych.rb
parentf22f976bce0a82a00759fca1b152276ce97c7236 (diff)
downloadpsych-6a3ac11a78827f21054b2ec6492683d5b4db20e7.zip
* lib/psych.rb (Psych.load): Return value of Psych::SyntaxError.message
should be same as example. Patch by Ippei Obayashi [ruby-core:51193]
Diffstat (limited to 'lib/psych.rb')
-rw-r--r--lib/psych.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index 9aab728..e9571b7 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -123,7 +123,7 @@ module Psych
# Psych.load("--- `", "file.txt")
# rescue Psych::SyntaxError => ex
# ex.file # => 'file.txt'
- # ex.message # => "(foo.txt): found character that cannot start any token"
+ # ex.message # => "(file.txt): found character that cannot start any token"
# end
def self.load yaml, filename = nil
result = parse(yaml, filename)
@@ -145,7 +145,7 @@ module Psych
# Psych.parse("--- `", "file.txt")
# rescue Psych::SyntaxError => ex
# ex.file # => 'file.txt'
- # ex.message # => "(foo.txt): found character that cannot start any token"
+ # ex.message # => "(file.txt): found character that cannot start any token"
# end
#
# See Psych::Nodes for more information about YAML AST.
@@ -195,7 +195,7 @@ module Psych
# Psych.parse_stream("--- `", "file.txt")
# rescue Psych::SyntaxError => ex
# ex.file # => 'file.txt'
- # ex.message # => "(foo.txt): found character that cannot start any token"
+ # ex.message # => "(file.txt): found character that cannot start any token"
# end
#
# See Psych::Nodes for more information about YAML AST.