Skip to content

Commit 343f555

Browse files
committed
Make Regex type pub
1 parent 641ef3f commit 343f555

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The provided Regex type allows 64 'operations' and 8 unique ASCII character sets
1111
Drop the file into your project, or use the Zig build system:
1212

1313
```zig
14-
zig fetch --save "https://github.com/mnemnion/mvzr/archive/refs/tags/v0.2.0.tar.gz"
14+
zig fetch --save "https://github.com/mnemnion/mvzr/archive/refs/tags/v0.2.1.tar.gz"
1515
```
1616

1717
I'll do my best to keep that URL fresh, but it pays to check over here: ➔
@@ -82,4 +82,4 @@ const SlimmedDownRegex = mvzr.SizedRegex(ops, sets);
8282

8383
## Bugs
8484

85-
Fewer over time, I hope. This library isn't up to `0.1` yet, but the test suite never shrinks.
85+
Fewer over time, I hope. The test suite never shrinks.

src/mvzr.zig

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ const std = @import("std");
88
const builtin = @import("builtin");
99
const assert = std.debug.assert;
1010

11-
const XXX = false;
12-
1311
// Zig is very particular about the types of shifts.
1412
const one: u64 = 1;
1513

@@ -94,7 +92,7 @@ const OpMatch = struct {
9492
i: usize,
9593
};
9694

97-
const Regex: type = SizedRegex(MAX_REGEX_OPS, MAX_CHAR_SETS);
95+
pub const Regex: type = SizedRegex(MAX_REGEX_OPS, MAX_CHAR_SETS);
9896

9997
pub fn SizedRegex(ops: comptime_int, char_sets: comptime_int) type {
10098
return struct {

0 commit comments

Comments
 (0)