diff options
Diffstat (limited to 'doc/string/length.rdoc')
| -rw-r--r-- | doc/string/length.rdoc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/string/length.rdoc b/doc/string/length.rdoc index 0a7e17f7dc..eb68edb10c 100644 --- a/doc/string/length.rdoc +++ b/doc/string/length.rdoc @@ -1,13 +1,11 @@ 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 -String#size is an alias for String#length. +Related: see {Querying}[rdoc-ref:String@Querying]. |
