Skip to content

Commit

Permalink
Update 07-modules.md
Browse files Browse the repository at this point in the history
ziglang/zig#18160 changed module syntax. This change brings the documentation in line with these updates.
  • Loading branch information
RonaldZielaznicki authored and Sobeston committed Feb 2, 2024
1 parent 5b7bfd3 commit 51b08be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/03-build-system/07-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ To your newly made `build.zig`, add the following lines.

```zig
const table_helper = b.addModule("table-helper", .{
.source_file = .{ .path = "libs/table-helper/table-helper.zig" }
.root_source_file = .{ .path = "libs/table-helper/table-helper.zig" }
});
exe.addModule("table-helper", table_helper);
exe.root_module.addImport("table-helper", table_helper);
```

Now when run via `zig build`,
Expand Down

0 comments on commit 51b08be

Please sign in to comment.