[ruby/json] Fix a typo

ruby/ruby#13636

6fc2c4b6ab

Co-Authored-By: Tim Smith <tsmith84@gmail.com>
This commit is contained in:
Nobuyoshi Nakada 2025-06-17 17:01:34 +09:00 committed by Hiroshi SHIBATA
parent 8992689118
commit e9d35671d2

View file

@ -268,7 +268,7 @@ module JSON
# to string interpolation. # to string interpolation.
# #
# Note: no validation is performed on the provided string. It is the # 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 Fragment = Struct.new(:json) do
def initialize(json) def initialize(json)
unless string = String.try_convert(json) unless string = String.try_convert(json)