8000 Update to Allocator API changes · ziglibs/string-searching@7bad758 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 7bad758

Browse files
Update to Allocator API changes
1 parent a653e89 commit 7bad758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/boyer_moore.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn StringFinder(comptime T: type) type {
1212
assert(@typeInfo(ElemType) == .Int);
1313

1414
return struct {
15-
allocator: ?*Allocator,
15+
allocator: ?Allocator,
1616
pattern: T,
1717
bad_char: [possible_values]usize,
1818
good_suffix: []usize,
@@ -40,7 +40,7 @@ pub fn StringFinder(comptime T: type) type {
4040
}
4141

4242
/// Initializes a StringFinder with a pattern
43-
pub fn init(allocator: *Allocator, pattern: T) !Self {
43+
pub fn init(allocator: Allocator, pattern: T) !Self {
4444
if (pattern.len == 0) return Self.empty;
4545

4646
var self = Self{

0 commit comments

Comments
 (0)
0