| author | |
| committer | |
| log | 5f7abef04e03f14aa6741d31a10cfa024c4424d0 |
| tree | 7f826e293ef5f36fff3358c154e9ea32b969bd4d |
| parent | b303caba8d260bb4d1a3fc7a29d983a6a56bb8ce |
1 files changed, 2 insertions(+), 2 deletions(-)
src/lib.zig+2-2| ... | @@ -392,9 +392,9 @@ pub fn BufIndexer(comptime T: type, comptime endian: std.builtin.Endian) type { | ... | @@ -392,9 +392,9 @@ pub fn BufIndexer(comptime T: type, comptime endian: std.builtin.Endian) type { |
| 392 | 392 | ||
| 393 | const Self = @This(); | 393 | const Self = @This(); |
| 394 | 394 | ||
| 395 | pub fn init(bytes: []const u8, max_len: usize) Self { | 395 | pub fn init(bytes: [*]const u8, max_len: usize) Self { |
| 396 | return .{ | 396 | return .{ |
| 397 | .bytes = bytes.ptr, | 397 | .bytes = bytes, |
| 398 | .max_len = max_len, | 398 | .max_len = max_len, |
| 399 | }; | 399 | }; |
| 400 | } | 400 | } |