Skip to content

Commit 26f5dee

Browse files
committed
Clarify comment
1 parent e0b9f5b commit 26f5dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ def to_str
426426
Primitive.foreign_string_to_ruby_string(self)
427427
end
428428

429-
# TruffleString and java.lang.String are both immutable
429+
# asTruffleString() and asString() are both immutable and the only way to access a foreign string (isString())
430430
def freeze
431431
self
432432
end
433433

434-
# TruffleString and java.lang.String are both immutable
434+
# asTruffleString() and asString() are both immutable and the only way to access a foreign string (isString())
435435
def frozen?
436436
true
437437
end

0 commit comments

Comments
 (0)