[DOC] Tweaks for String#ascii_only?

This commit is contained in:
BurdetteLamar 2025-05-15 14:51:27 -05:00 committed by Peter Zhu
parent c5c252c067
commit 1f09c9fa14
Notes: git 2025-05-16 16:47:08 +00:00

View File

@ -11901,12 +11901,12 @@ rb_str_valid_encoding_p(VALUE str)
* call-seq:
* ascii_only? -> true or false
*
* Returns +true+ if +self+ contains only ASCII characters,
* +false+ otherwise:
* Returns whether +self+ contains only ASCII characters:
*
* 'abc'.ascii_only? # => true
* "abc\u{6666}".ascii_only? # => false
*
* Related: see {Querying}[rdoc-ref:String@Querying].
*/
static VALUE