From c2d77880c070fa94e6fe1e31e477225c13318933 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 30 Aug 2016 06:27:29 +0000 Subject: 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 --- ext/json/lib/json/add/ostruct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/json/lib/json/add') diff --git a/ext/json/lib/json/add/ostruct.rb b/ext/json/lib/json/add/ostruct.rb index 7c13910052..e064c85ff4 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 - # v serialized by to_json. + # t serialized by to_json. def self.json_create(object) new(object['t'] || object[:t]) end -- cgit v1.2.3