Skip to content

Commit 08d7f54

Browse files
committed
fix comment formatting
1 parent e41d530 commit 08d7f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/webapi/CData.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn setData(self: *CData, value: ?[]const u8, page: *Page) !void {
7575
pub fn format(self: *const CData, writer: *std.io.Writer) !void {
7676
return switch (self._type) {
7777
.text => writer.print("<text>{s}</text>", .{self._data}),
78-
.comment => writer.print("<comment>{s}</comment>", .{self._data}),
78+
.comment => writer.print("<!-- {s} -->", .{self._data}),
7979
};
8080
}
8181

0 commit comments

Comments
 (0)