summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/string.c b/string.c
index f6987459ed..4d5fea2962 100644
--- a/string.c
+++ b/string.c
@@ -2115,14 +2115,8 @@ rb_str_strlen(VALUE str)
* call-seq:
* length -> integer
*
- * Returns the count of characters (not bytes) in +self+:
+ * :include: doc/string/length.rdoc
*
- * "\x80\u3042".length # => 2
- * "hello".length # => 5
- *
- * String#size is an alias for String#length.
- *
- * Related: String#bytesize.
*/
VALUE
@@ -2135,12 +2129,8 @@ rb_str_length(VALUE str)
* call-seq:
* bytesize -> integer
*
- * Returns the count of bytes in +self+:
- *
- * "\x80\u3042".bytesize # => 4
- * "hello".bytesize # => 5
+ * :include: doc/string/bytesize.rdoc
*
- * Related: String#length.
*/
static VALUE