Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn build(b: *std.Build) void {
Now in your code you may import and use zmath:

```zig
const zm = @import("zmath");
const zm = @import("zmath").zmath;

pub fn main() !void {
//
Expand Down
2 changes: 1 addition & 1 deletion src/benchmark.zig
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn main() !void {
const std = @import("std");
const time = std.time;
const Timer = time.Timer;
const zm = @import("zmath");
const zm = @import("zmath").zmath;

var prng = std.Random.DefaultPrng.init(0);
const random = prng.random();
Expand Down
3 changes: 2 additions & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
// See util.zig for additional functionality.
//
//--------------------------------------------------------------------------------------------------
pub usingnamespace @import("zmath.zig");
pub const zmath = @import("zmath.zig");
pub const util = @import("util.zig");

// ensure transitive closure of test coverage
comptime {
_ = util;
_ = zmath;
}