Skip to content

Commit

Permalink
Merge pull request #448 from Shopify/fix-load-file-doc
Browse files Browse the repository at this point in the history
Fix JSON.load_file doc
  • Loading branch information
hsbt committed Sep 10, 2020
2 parents c5083b2 + cb61a00 commit 07c3404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 07c3404

Please sign in to comment.