fixup! refactor: extract modules from bot.zig

This comment was added when this refactoring had already been
performed.
This commit is contained in:
Jacob Jonsson 2026-03-15 15:06:45 +01:00
parent 1d44645451
commit b72d584996
Signed by: Jassob
GPG key ID: 7E30B9B047F7202E

View file

@ -6,11 +6,6 @@ const std = @import("std");
// automatically deinited when it is overwritten by supplying a custom
// ItemDeinitClosure, using .init_with_closure.
pub fn Buffer(comptime T: type, comptime length: usize) type {
// TODO(jassob): Refactor buffer to use a top and len instead of
// top and bottom.
//
// Idea: bottom is always 0 if len != length and otherwise it is
// always top + 1.
return struct {
items: [length]?T,
top: usize,