Skip to content

remove using namepace #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 9, 2025
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;
}