mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
[ruby/json] Fix a typo
ruby/ruby#13636 https://github.com/ruby/json/commit/6fc2c4b6ab Co-Authored-By: Tim Smith <tsmith84@gmail.com>
This commit is contained in:
1 parent
8992689118
commit
e9d35671d2
1 file changed
+1
-1
@@ -268,7 +268,7 @@ module JSON
|
||||
# to string interpolation.
|
||||
#
|
||||
# Note: no validation is performed on the provided string. It is the
|
||||
# responsability of the caller to ensure the string contains valid JSON.
|
||||
# responsibility of the caller to ensure the string contains valid JSON.
|
||||
Fragment = Struct.new(:json) do
|
||||
def initialize(json)
|
||||
unless string = String.try_convert(json)
|
||||
|
||||
Reference in new issue
Block a user