summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-10 10:59:04 +0900
committerGitHub <noreply@github.com>2020-09-10 10:59:04 +0900
commit07c34048ff758c81be9d8b30f5d63084e5e9e072 (patch)
treebfbab51eb35c46db9a4d71ba9a9bb9e82114719d
parentc5083b238ed2016b968c402990f9de084f415e0d (diff)
parentcb61a00ba8da3df36524979822a5d145f104ea35 (diff)
downloadjson-07c34048ff758c81be9d8b30f5d63084e5e9e072.tar.gz
Merge pull request #448 from Shopify/fix-load-file-doc
Fix JSON.load_file doc
-rw-r--r--lib/json/common.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb
index 2e4aa2a..111d70c 100644
--- a/lib/json/common.rb
+++ b/lib/json/common.rb
@@ -215,7 +215,7 @@ module JSON
end
# :call-seq:
- # CSV.load_file(path, opts={}) -> object
+ # JSON.load_file(path, opts={}) -> object
#
# Calls:
# parse(File.read(path), opts)
@@ -226,10 +226,10 @@ module JSON
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 = {})