From bc5aa094dc0de9816c57ad7d05b1f971bae4b11b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 10:43:06 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage example on findMinerBinary AX Principle 2: comments must show HOW with real values, not restate what the type signature already says. Co-Authored-By: Charon --- pkg/mining/miner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mining/miner.go b/pkg/mining/miner.go index e9e62b0..d68c845 100644 --- a/pkg/mining/miner.go +++ b/pkg/mining/miner.go @@ -323,8 +323,8 @@ func compareVersions(v1, v2 []int) int { return 0 } -// findMinerBinary searches for the miner's executable file. -// It returns the absolute path to the executable if found, prioritizing the highest versioned installation. +// path, err := b.findMinerBinary() +// // path == "/home/user/.local/share/lethean-desktop/miners/xmrig/xmrig-6.24.0/xmrig" func (b *BaseMiner) findMinerBinary() (string, error) { executableName := b.ExecutableName if runtime.GOOS == "windows" {