From a1acba6d14ccaae492d65cf38493fb2c76148251 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Wed, 9 Jul 2025 13:59:39 -0500 Subject: [PATCH] [DOC] Tweaks for String#codepoints --- doc/string/codepoints.rdoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/string/codepoints.rdoc b/doc/string/codepoints.rdoc index 0c55d3f4b9..d9586d2e0b 100644 --- a/doc/string/codepoints.rdoc +++ b/doc/string/codepoints.rdoc @@ -4,3 +4,6 @@ each codepoint is the integer value for a character: 'hello'.codepoints # => [104, 101, 108, 108, 111] 'тест'.codepoints # => [1090, 1077, 1089, 1090] 'こんにちは'.codepoints # => [12371, 12435, 12395, 12385, 12399] + ''.codepoints # => [] + +Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].