diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-30 06:27:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-30 06:27:29 +0000 |
commit | c2d77880c070fa94e6fe1e31e477225c13318933 (patch) | |
tree | de608eb21895ab61bda0d7fefbc6b06e7b8f2db9 | |
parent | 4b298ad77a8388f0aae62daeca66659a8effeade (diff) |
Fix rdoc of OpenStruct.json_create [ci skip]
* ext/json/lib/json/add/ostruct.rb (OpenStruct.json_create):
Correct documentation, fix the name of values. [Fix GH-1421]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/json/lib/json/add/ostruct.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 30 15:27:27 2016 Kouhei Yanagita <yanagi@shakenbu.org> + + * ext/json/lib/json/add/ostruct.rb (OpenStruct.json_create): + Correct documentation, fix the name of values. [Fix GH-1421] + Tue Aug 30 14:53:34 2016 NAKAMURA Usaku <usa@ruby-lang.org> * io.c (nogvl_fsync, nogvl_fdatasync): on Windows, just ignore if the diff --git a/ext/json/lib/json/add/ostruct.rb b/ext/json/lib/json/add/ostruct.rb index 7c13910..e064c85 100644 --- a/ext/json/lib/json/add/ostruct.rb +++ b/ext/json/lib/json/add/ostruct.rb @@ -7,7 +7,7 @@ require 'ostruct' class OpenStruct # Deserializes JSON string by constructing new Struct object with values - # <tt>v</tt> serialized by <tt>to_json</tt>. + # <tt>t</tt> serialized by <tt>to_json</tt>. def self.json_create(object) new(object['t'] || object[:t]) end |