Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb61a00

Browse files
committed
Fix JSON.load_file doc
1 parent c5083b2 commit cb61a00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/json/common.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def parse!(source, opts = {})
215215
end
216216

217217
# :call-seq:
218-
# CSV.load_file(path, opts={}) -> object
218+
# JSON.load_file(path, opts={}) -> object
219219
#
220220
# Calls:
221221
# parse(File.read(path), opts)
@@ -226,10 +226,10 @@ def load_file(filespec, opts = {})
226226
end
227227

228228
# :call-seq:
229-
# CSV.load_file!(path, opts = {})
229+
# JSON.load_file!(path, opts = {})
230230
#
231231
# Calls:
232-
# CSV.parse!(File.read(path, opts))
232+
# JSON.parse!(File.read(path, opts))
233233
#
234234
# See method #parse!
235235
def load_file!(filespec, opts = {})

0 commit comments

Comments
 (0)