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 {
35
35
Now in your code you may import and use zmath:
36
36
37
37
``` zig
38
- const zm = @import("zmath");
38
+ const zm = @import("zmath").zmath ;
39
39
40
40
pub fn main() !void {
41
41
//
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub fn main() !void {
65
65
const std = @import ("std" );
66
66
const time = std .time ;
67
67
const Timer = time .Timer ;
68
- const zm = @import ("zmath" );
68
+ const zm = @import ("zmath" ). zmath ;
69
69
70
70
var prng = std .Random .DefaultPrng .init (0 );
71
71
const random = prng .random ();
Original file line number Diff line number Diff line change 7
7
// See util.zig for additional functionality.
8
8
//
9
9
//--------------------------------------------------------------------------------------------------
10
- pub usingnamespace @import ("zmath.zig" );
10
+ pub const zmath = @import ("zmath.zig" );
11
11
pub const util = @import ("util.zig" );
12
12
13
13
// ensure transitive closure of test coverage
14
14
comptime {
15
15
_ = util ;
16
+ _ = zmath ;
16
17
}
You can’t perform that action at this time.
0 commit comments