You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String slices are a UTF-8 representation of characters that have the same layout as slices of type [u8]. A reference &str has the same layout as a reference &[u8].
Second sentence is fine, but the first one suggests that they are always UTF-8 even though they aren't
Activity
DanielEScherzer commentedon Nov 10, 2026
From the lang docs call today, TC pointed out that https://doc.rust-lang.org/reference/type-layout.html#r-layout.str should probably also be updated
Second sentence is fine, but the first one suggests that they are always UTF-8 even though they aren't
DanielEScherzer commentedon Nov 10, 2026
@TriageBot label +A-glossary +A-type-layout