We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const
1 parent 1631dc9 commit 45d7dfaCopy full SHA for 45d7dfa
lib/std/hash_map.zig
@@ -92,7 +92,7 @@ pub fn hashString(s: []const u8) u64 {
92
}
93
94
pub const StringIndexContext = struct {
95
- bytes: *std.ArrayListUnmanaged(u8),
+ bytes: *const std.ArrayListUnmanaged(u8),
96
97
pub fn eql(self: @This(), a: u32, b: u32) bool {
98
_ = self;
@@ -106,7 +106,7 @@ pub const StringIndexContext = struct {
106
};
107
108
pub const StringIndexAdapter = struct {
109
110
111
pub fn eql(self: @This(), a_slice: []const u8, b: u32) bool {
112
const b_slice = mem.sliceTo(@as([*:0]const u8, @ptrCast(self.bytes.items.ptr)) + b, 0);
0 commit comments