netsurf: use idiomatic []const u8 for filename

This commit is contained in:
Pierre Tachoire
2023-10-02 21:25:55 +02:00
parent 70e3e00042
commit 47b6d38ed3
4 changed files with 6 additions and 8 deletions

View File

@@ -32,8 +32,7 @@ pub fn main() !void {
const apis = jsruntime.compile(DOM.Interfaces);
// document
var f = "test.html".*;
doc = parser.documentHTMLParse(&f);
doc = parser.documentHTMLParse("test.html");
// TODO: defer doc?
// create JS vm