Skip to content

Commit 2156d4d

Browse files
remove using namepace
1 parent ccf7297 commit 2156d4d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn build(b: *std.Build) void {
3535
Now in your code you may import and use zmath:
3636

3737
```zig
38-
const zm = @import("zmath");
38+
const zm = @import("zmath").zmath;
3939
4040
pub fn main() !void {
4141
//

src/benchmark.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn main() !void {
6565
const std = @import("std");
6666
const time = std.time;
6767
const Timer = time.Timer;
68-
const zm = @import("zmath");
68+
const zm = @import("zmath").zmath;
6969

7070
var prng = std.Random.DefaultPrng.init(0);
7171
const random = prng.random();

src/main.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
// See util.zig for additional functionality.
88
//
99
//--------------------------------------------------------------------------------------------------
10-
pub usingnamespace @import("zmath.zig");
10+
pub const zmath = @import("zmath.zig");
1111
pub const util = @import("util.zig");
1212

1313
// ensure transitive closure of test coverage
1414
comptime {
1515
_ = util;
16+
_ = zmath;
1617
}

0 commit comments

Comments
 (0)