Skip to content

Commit d6711f5

Browse files
committed
fix: style
1 parent 515caa7 commit d6711f5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@ const quickphf_dep = b.dependency("quickphf", .{
1818
.optimize = optimize,
1919
});
2020
const quickphf_mod = quickphf_dep.module("quickphf");
21-
<compile>.root_module.addImport("quickphf", quickphf_mod);
21+
22+
...
23+
.imports = &.{
24+
.{ .name = "quickphf", .module = quickphf_mod },
25+
},
26+
...
2227
```

build.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ pub fn build(b: *std.Build) !void {
4545
.target = target,
4646
.optimize = optimize,
4747
.root_source_file = b.path(EXAMPLE_DIR ++ "main.zig"),
48+
.imports = &.{
49+
.{ .name = "quickphf", .module = root_mod },
50+
},
4851
}),
4952
});
50-
example_exe.root_module.addImport("quickphf", root_mod);
5153

5254
const example_exe_run = b.addRunArtifact(example_exe);
5355
example_step.dependOn(&example_exe_run.step);

0 commit comments

Comments
 (0)