diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 12:40:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 14:56:36 -0300 |
| commit | 80f4398f1fed8d46d73cab8045005c02189b34fc (patch) | |
| tree | ad60d6e83a1ba08d9869012ac819ff58ca826248 /src/Names.zig | |
| parent | a864ef66736d3cfbdffed8b98a3c46be7985db74 (diff) | |
| download | pardes-80f4398f1fed8d46d73cab8045005c02189b34fc.tar.gz pardes-80f4398f1fed8d46d73cab8045005c02189b34fc.zip | |
idioms #14, the rest: wire's has_cell_pixels (@hasField on a struct that always has the field) goes with its comptime branches, syntax's predicate ops are a stringToEnum switch, the public surfaces of sam_edit, locations, Names, Macro, selection_pipe, recent and builtins_json name their sets (OutOfMemory, Writer.Error), and std.fs.path and max_path_bytes are std.Io.Dir's
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Names.zig')
| -rw-r--r-- | src/Names.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Names.zig b/src/Names.zig index a3fff314..d9597994 100644 --- a/src/Names.zig +++ b/src/Names.zig @@ -84,7 +84,7 @@ pub fn queryText(n: *const Names) []const u8 { return n.query_buf[0..n.query_len]; } -pub fn add(n: *Names, gpa: std.mem.Allocator, row_in: []const u8, key: usize, key_len: usize, base: u16, ref: u32) !void { +pub fn add(n: *Names, gpa: std.mem.Allocator, row_in: []const u8, key: usize, key_len: usize, base: u16, ref: u32) error{OutOfMemory}!void { if (n.cands.items.len >= max_cands) return; const text = row_in[0..@min(row_in.len, std.math.maxInt(u16))]; try n.cands.append(gpa, .{ |
