fixup! refactor: extract modules from bot.zig
This comment was added when this refactoring had already been performed.
This commit is contained in:
parent
1d44645451
commit
b72d584996
1 changed files with 0 additions and 5 deletions
|
|
@ -6,11 +6,6 @@ const std = @import("std");
|
||||||
// automatically deinited when it is overwritten by supplying a custom
|
// automatically deinited when it is overwritten by supplying a custom
|
||||||
// ItemDeinitClosure, using .init_with_closure.
|
// ItemDeinitClosure, using .init_with_closure.
|
||||||
pub fn Buffer(comptime T: type, comptime length: usize) type {
|
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 {
|
return struct {
|
||||||
items: [length]?T,
|
items: [length]?T,
|
||||||
top: usize,
|
top: usize,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue