diff --git a/doc/langref.html.in b/doc/langref.html.in index 38e1d674fa..50807377cd 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -7048,8 +7048,10 @@ test "foo" {
This means that a programmer can create a function which is called both at compile-time and run-time, with @@ -7071,9 +7073,7 @@ test "fibonacci" { try expect(fibonacci(7) == 13); // test fibonacci at compile-time - comptime { - try expect(fibonacci(7) == 13); - } + try comptime expect(fibonacci(7) == 13); } {#code_end#}
@@ -7088,9 +7088,7 @@ fn fibonacci(index: u32) u32 { } test "fibonacci" { - comptime { - try expect(fibonacci(7) == 13); - } + try comptime expect(fibonacci(7) == 13); } {#code_end#}
@@ -7111,9 +7109,7 @@ fn fibonacci(index: i32) i32 { } test "fibonacci" { - comptime { - try assert(fibonacci(7) == 13); - } + try comptime assert(fibonacci(7) == 13); } {#code_end#}
@@ -7143,9 +7139,7 @@ fn fibonacci(index: i32) i32 { } test "fibonacci" { - comptime { - try assert(fibonacci(7) == 99999); - } + try comptime assert(fibonacci(7) == 99999); } {#code_end#}