diff --git a/doc/langref.html.in b/doc/langref.html.in index 24449f5e39691a738e1dd9db02722d8c38e9590b..870726fada07fe9392b386c814d6ffcd6bee2322 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -10595,7 +10595,7 @@ pub fn main() !void { {#header_close#} {#header_open|Where are the bytes?#} -
String literals such as {#syntax#}"foo"{#endsyntax#} are in the global constant data section. +
String literals such as {#syntax#}"hello"{#endsyntax#} are in the global constant data section. This is why it is an error to pass a string literal to a mutable slice, like this:
{#code_begin|test_err|test_string_literal_to_slice|expected type '[]u8', found '*const [5:0]u8'#}