diff --git a/doc/langref.html.in b/doc/langref.html.in index 6321dddff7..30a1fe36f7 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -134,16 +134,6 @@ pub fn main() void {

{#see_also|Values|@import|Errors|Root Source File#} {#header_close#} - {#header_open|Source Encoding#} -

Zig source code is encoded in UTF-8. An invalid UTF-8 byte sequence results in a compile error.

-

Throughout all zig source code (including in comments), some codepoints are never allowed:

- -

The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).

-

For some discussion on the rationale behind these design decisions, see issue #663

- {#header_close#} {#header_open|Values#} {#code_begin|exe|values#} const std = @import("std"); @@ -5627,6 +5617,16 @@ fn readU32Be() u32 {}

{#header_close#} {#header_close#} + {#header_open|Source Encoding#} +

Zig source code is encoded in UTF-8. An invalid UTF-8 byte sequence results in a compile error.

+

Throughout all zig source code (including in comments), some codepoints are never allowed:

+ +

The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).

+

For some discussion on the rationale behind these design decisions, see issue #663

+ {#header_close#} {#header_open|Grammar#}
Root = many(TopLevelItem) EOF