Skip to content

Commit 48fd46b

Browse files
committed
Typo
1 parent 08b5280 commit 48fd46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/truffle/random_operations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def self.obj_random_int(randomizer)
122122

123123
def self.obj_random_bytes(obj, len)
124124
bytes = obj.bytes(len)
125-
raise TypeError, 'type must by String' unless Primitive.object_kind_of?(bytes, String)
125+
raise TypeError, 'type must be String' unless Primitive.object_kind_of?(bytes, String)
126126
bytesize = bytes.bytesize
127127
unless bytesize == len
128128
raise RangeError, "random data too #{bytesize < len ? 'short' : 'long'} #{bytesize}"

0 commit comments

Comments
 (0)