1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-10-17 14:01:01 +00:00

Fix typo in documentation for Rackstash::Utils.utf8

This commit is contained in:
Holger Just 2020-08-04 17:58:34 +02:00
parent 22631e83d6
commit 1249b6ac47

View File

@ -14,7 +14,7 @@ module Rackstash
# return it unchanged. In all other cases we return a UTF-8 encoded and
# frozen copy of the string.
#
# @param str [String, #to_s]
# @param obj [String, #to_s]
# @return [String]
def utf8(obj)
if obj.instance_of?(String) && obj.encoding == Encoding::UTF_8 && obj.valid_encoding?