diff --git a/ChangeLog b/ChangeLog index 11a55162f7..cb0ff89a5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 30 15:27:27 2016 Kouhei Yanagita + + * 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 * 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 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