diff --git a/doc/langref.html.in b/doc/langref.html.in
index 601b53463f..de029fd236 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -385,7 +385,7 @@ pub fn main() -> %void {
noreturn |
(none) |
- the type of break, continue, goto, return, unreachable, and while (true) {} |
+ the type of break, continue, return, unreachable, and while (true) {} |
type |
@@ -2622,7 +2622,6 @@ test "type of unreachable" {
break
continue
- goto
return
unreachable
while (true) {}
@@ -3321,7 +3320,7 @@ test "foo" {
- All variables are
comptime variables.
- - All
if, while, for, switch, and goto
+ - All
if, while, for, and switch
expressions are evaluated at compile-time, or emit a compile error if this is not possible.
- All function calls cause the compiler to interpret the function at compile-time, emitting a
compile error if the function tries to do something that has global run-time side effects.
@@ -5765,7 +5764,7 @@ hljs.registerLanguage("zig", function(t) {
},
a = t.IR + "\\s*\\(",
c = {
- keyword: "const align var extern stdcallcc nakedcc volatile export pub noalias inline struct packed enum union goto break return try catch test continue unreachable comptime and or asm defer if else switch while for fn use bool f32 f64 void type noreturn error i8 u8 i16 u16 i32 u32 i64 u64 isize usize i8w u8w i16w i32w u32w i64w u64w isizew usizew c_short c_ushort c_int c_uint c_long c_ulong c_longlong c_ulonglong",
+ keyword: "const align var extern stdcallcc nakedcc volatile export pub noalias inline struct packed enum union break return try catch test continue unreachable comptime and or asm defer errdefer if else switch while for fn use bool f32 f64 void type noreturn error i8 u8 i16 u16 i32 u32 i64 u64 isize usize i8w u8w i16w i32w u32w i64w u64w isizew usizew c_short c_ushort c_int c_uint c_long c_ulong c_longlong c_ulonglong",
built_in: "breakpoint returnAddress frameAddress fieldParentPtr setFloatMode IntType OpaqueType compileError compileLog setCold setDebugSafety setEvalBranchQuota offsetOf memcpy inlineCall setGlobalLinkage setGlobalSection divTrunc divFloor enumTagName intToPtr ptrToInt panic canImplicitCast ptrCast bitCast rem mod memset sizeOf alignOf alignCast maxValue minValue memberCount typeOf addWithOverflow subWithOverflow mulWithOverflow shlWithOverflow shlExact shrExact cInclude cDefine cUndef ctz clz import cImport errorName embedFile cmpxchg fence divExact truncate",
literal: "true false null undefined"
},
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index abe880941c..9910b17f0d 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -92,7 +92,7 @@ static const char *return_string(ReturnKind kind) {
static const char *defer_string(ReturnKind kind) {
switch (kind) {
case ReturnKindUnconditional: return "defer";
- case ReturnKindError: return "%defer";
+ case ReturnKindError: return "errdefer";
}
zig_unreachable();
}