authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-08 19:37:59-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-08 19:38:16-05:00
logd6f2af378abe7467657f6fbf8133b995e5f55142
treeec67d09e705a947a423d7ac3b3e025eebc3a5428
parent46ddd5f5f4db7977010f78129fade7dfa5b9d8d3
signature Commit is signed but in an unrecognized format.

fix docs

broken by c2db077574be8

2 files changed, 2 insertions(+), 2 deletions(-)

doc/docgen.zig+1-1
...@@ -620,7 +620,7 @@ const TermState = enum {...@@ -620,7 +620,7 @@ const TermState = enum {
620test "term color" {620test "term color" {
621 const input_bytes = "A\x1b[32;1mgreen\x1b[0mB";621 const input_bytes = "A\x1b[32;1mgreen\x1b[0mB";
622 const result = try termColor(std.debug.global_allocator, input_bytes);622 const result = try termColor(std.debug.global_allocator, input_bytes);
623 testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result));623 testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result);
624}624}
625625
626fn termColor(allocator: *mem.Allocator, input: []const u8) ![]u8 {626fn termColor(allocator: *mem.Allocator, input: []const u8) ![]u8 {
doc/langref.html.in+1-1
...@@ -4627,7 +4627,7 @@ test "fibonacci" {...@@ -4627,7 +4627,7 @@ test "fibonacci" {
4627 <p>4627 <p>
4628 What if we fix the base case, but put the wrong value in the {#syntax#}assert{#endsyntax#} line?4628 What if we fix the base case, but put the wrong value in the {#syntax#}assert{#endsyntax#} line?
4629 </p>4629 </p>
4630 {#code_begin|test_err|encountered @panic at compile-time#}4630 {#code_begin|test_err|unable to evaluate constant expression#}
4631const assert = @import("std").debug.assert;4631const assert = @import("std").debug.assert;
46324632
4633fn fibonacci(index: i32) i32 {4633fn fibonacci(index: i32) i32 {