Skip to content

Commit

Permalink
[flori/json] Fix JSON.load_file doc
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot authored and hsbt committed Sep 25, 2020
1 parent 038252f commit 927a377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/json/lib/json/common.rb
Expand Up @@ -215,7 +215,7 @@ def parse!(source, opts = {})
end

# :call-seq:
# CSV.load_file(path, opts={}) -> object
# JSON.load_file(path, opts={}) -> object
#
# Calls:
# parse(File.read(path), opts)
Expand All @@ -226,10 +226,10 @@ def load_file(filespec, opts = {})
end

# :call-seq:
# CSV.load_file!(path, opts = {})
# JSON.load_file!(path, opts = {})
#
# Calls:
# CSV.parse!(File.read(path, opts))
# JSON.parse!(File.read(path, opts))
#
# See method #parse!
def load_file!(filespec, opts = {})
Expand Down

0 comments on commit 927a377

Please sign in to comment.