Skip to content

Commit

Permalink
Update an out of date comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 28, 2023
1 parent d0f8a77 commit c965e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/async/chan_go1.21.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type UnboundedChan[T any] struct {
// NewUnboundedFuncChan returns a unbounded channel with unlimited capacity.
func NewUnboundedChan[T any]() *UnboundedChan[T] {
ch := &UnboundedChan[T]{
// The size of Func is less than 16 bytes, we use 16 to fit
// The size of Func, Interface, and CanvasObject are all less than 16 bytes, we use 16 to fit
// a CPU cache line (L2, 256 Bytes), which may reduce cache misses.
in: make(chan T, 16),
out: make(chan T, 16),
Expand Down

0 comments on commit c965e2a

Please sign in to comment.