summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-08-24 10:37:26 -0500
committerPeter Zhu <peter@peterzhu.ca>2025-08-27 09:25:36 -0400
commitd2ef901f6cf86b3cd172782e2c629be162c99b72 (patch)
treeaf25dae6cfacc9e0e6a486bb0a6614b4796c8428 /doc
parentc3c74e0d31c0c7327d2eb2c79b253d6500c6f2c0 (diff)
[DOC] Tweaks for String#length
Diffstat (limited to 'doc')
-rw-r--r--doc/string/length.rdoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/string/length.rdoc b/doc/string/length.rdoc
index 544bca269f..5b302380b5 100644
--- a/doc/string/length.rdoc
+++ b/doc/string/length.rdoc
@@ -2,11 +2,12 @@ Returns the count of characters (not bytes) in +self+:
'foo'.length # => 3
'тест'.length # => 4
- 'こんにちは'.length # => 5
+ 'こんにちは'.length # => 5
Contrast with String#bytesize:
'foo'.bytesize # => 3
'тест'.bytesize # => 8
- 'こんにちは'.bytesize # => 15
+ 'こんにちは'.bytesize # => 15
+Related: see {Querying}[rdoc-ref:String@Querying].