We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c357b90 commit 72568c1Copy full SHA for 72568c1
doc/langref.html.in
@@ -10595,7 +10595,7 @@ pub fn main() !void {
10595
{#header_close#}
10596
10597
{#header_open|Where are the bytes?#}
10598
- <p>String literals such as {#syntax#}"foo"{#endsyntax#} are in the global constant data section.
+ <p>String literals such as {#syntax#}"hello"{#endsyntax#} are in the global constant data section.
10599
This is why it is an error to pass a string literal to a mutable slice, like this:
10600
</p>
10601
{#code_begin|test_err|test_string_literal_to_slice|expected type '[]u8', found '*const [5:0]u8'#}
0 commit comments