File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub fn build(b: *std.Build) void {
3535Now in your code you may import and use zmath:
3636
3737``` zig
38- const zm = @import("zmath");
38+ const zm = @import("zmath").zmath ;
3939
4040pub fn main() !void {
4141 //
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub fn main() !void {
6565const std = @import ("std" );
6666const time = std .time ;
6767const Timer = time .Timer ;
68- const zm = @import ("zmath" );
68+ const zm = @import ("zmath" ). zmath ;
6969
7070var prng = std .Random .DefaultPrng .init (0 );
7171const random = prng .random ();
Original file line number Diff line number Diff line change 77// See util.zig for additional functionality.
88//
99//--------------------------------------------------------------------------------------------------
10- pub usingnamespace @import ("zmath.zig" );
10+ pub const zmath = @import ("zmath.zig" );
1111pub const util = @import ("util.zig" );
1212
1313// ensure transitive closure of test coverage
1414comptime {
1515 _ = util ;
16+ _ = zmath ;
1617}
You can’t perform that action at this time.
0 commit comments