From 78b7646bdb91285873ac26bca060591e06c45afe Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 17 Jan 2026 14:19:15 +0900 Subject: [Bug #21842] Let `rb_interned_str` return US-ASCII if possible --- include/ruby/internal/intern/string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ruby') diff --git a/include/ruby/internal/intern/string.h b/include/ruby/internal/intern/string.h index 75a28143fb..2ec08fc81f 100644 --- a/include/ruby/internal/intern/string.h +++ b/include/ruby/internal/intern/string.h @@ -444,8 +444,8 @@ VALUE rb_str_to_interned_str(VALUE str); * terminating NUL character. * @exception rb_eArgError `len` is negative. * @return A found or created instance of ::rb_cString, of `len` bytes - * length, of "binary" encoding, whose contents are identical to - * that of `ptr`. + * length, of US-ASCII or "binary" encoding, whose contents are + * identical to that of `ptr`. * @pre At least `len` bytes of continuous memory region shall be * accessible via `ptr`. */ -- cgit v1.2.3