We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a653e89 commit 7bad758Copy full SHA for 7bad758
1 file changed
src/boyer_moore.zig
@@ -12,7 +12,7 @@ pub fn StringFinder(comptime T: type) type {
12
assert(@typeInfo(ElemType) == .Int);
13
14
return struct {
15
- allocator: ?*Allocator,
+ allocator: ?Allocator,
16
pattern: T,
17
bad_char: [possible_values]usize,
18
good_suffix: []usize,
@@ -40,7 +40,7 @@ pub fn StringFinder(comptime T: type) type {
40
}
41
42
/// Initializes a StringFinder with a pattern
43
- pub fn init(allocator: *Allocator, pattern: T) !Self {
+ pub fn init(allocator: Allocator, pattern: T) !Self {
44
if (pattern.len == 0) return Self.empty;
45
46
var self = Self{
0 commit comments