Add explicit free to docs

This commit is contained in:
Benjamin Feng 2020-01-29 14:47:17 -06:00
parent aa9caf5064
commit c4e6e5fad6

View File

@ -673,6 +673,7 @@ const TermState = enum {
test "term color" {
const input_bytes = "A\x1b[32;1mgreen\x1b[0mB";
const result = try termColor(std.testing.leak_count_allocator, input_bytes);
defer std.testing.leak_count_allocator.free(result);
testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result);
}