summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-10-26 09:24:56 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-10-26 09:30:12 +0900
commita0029ae2b68cec3a4cb298967afbc9192d331c10 (patch)
tree80737db700b2bda633b598319a6ac0413a507a9f /include
parentb49ec78fd02836d4db4807fcdc86886138927c70 (diff)
downloadruby-a0029ae2b68cec3a4cb298967afbc9192d331c10.tar.gz
just another evidence that @shyouhei is an idiot [ci skip]
(gdb) ptype/o struct RString /* offset | size */ type = struct RString { /* 0 | 16 */ struct RBasic { /* 0 | 8 */ VALUE flags; /* 8 | 8 */ const VALUE klass; /* total size (bytes): 16 */ } basic; /* 16 | 24 */ union { /* 24 */ struct { /* 16 | 8 */ long len; /* 24 | 8 */ char *ptr; /* 32 | 8 */ union { /* 8 */ long capa; /* 8 */ VALUE shared; /* total size (bytes): 8 */ } aux; /* total size (bytes): 24 */ } heap; /* 24 */ struct { /* 16 | 24 */ char ary[24]; /* total size (bytes): 24 */ } embed; /* XXX 8-byte padding */ /* total size (bytes): 24 */ } as; /* total size (bytes): 40 */ } (gdb)
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/core/rstring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/core/rstring.h b/include/ruby/internal/core/rstring.h
index b7cf142156..fea2933a73 100644
--- a/include/ruby/internal/core/rstring.h
+++ b/include/ruby/internal/core/rstring.h
@@ -280,7 +280,7 @@ struct RString {
/**
* Embedded contents. When a string is short enough, it uses this area
* to store the contents themselves. This was impractical in the 20th
- * century, but these days 64 bit machines can typically hold 48 bytes
+ * century, but these days 64 bit machines can typically hold 24 bytes
* here. Could be sufficiently large. In this case the length is
* encoded into the flags.
*/