[DOC] Update flags doc for strings

The length of an embedded string is no longer in the flags.
This commit is contained in:
Peter Zhu 2023-06-05 09:49:35 -04:00
parent 542c70aab7
commit 1a7ee14578

View File

@ -82,7 +82,6 @@ VALUE rb_cSymbol;
*
* 1: RSTRING_NOEMBED
* 2: STR_SHARED (== ELTS_SHARED)
* 2-6: RSTRING_EMBED_LEN (5 bits == 32)
* 5: STR_SHARED_ROOT (RSTRING_NOEMBED==1 && STR_SHARED == 0, there may be
* other strings that rely on this string's buffer)
* 6: STR_BORROWED (when RSTRING_NOEMBED==1 && klass==0, unsafe to recycle