ax(mining): replace prose comment with usage example on LogBuffer.Clear
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 08:34:13 +01:00
parent 58e1c23f0c
commit ed76d53b85
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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()