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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy