From ed76d53b85b76db5ce1108cc9f5cc4f9d0ad0c9d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:34:13 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage example on LogBuffer.Clear AX Principle 2: comments must show usage, not restate the signature. "Clear clears the log buffer." adds zero information beyond the name. Co-Authored-By: Charon --- pkg/mining/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mining/miner.go b/pkg/mining/miner.go index c831c76..d67c17d 100644 --- a/pkg/mining/miner.go +++ b/pkg/mining/miner.go @@ -84,7 +84,7 @@ func (lb *LogBuffer) GetLines() []string { return result } -// Clear clears the log buffer. +// lb.Clear() // called on miner Stop() to release memory func (lb *LogBuffer) Clear() { lb.mu.Lock() defer lb.mu.Unlock()