From fe53e1fd4cbeee0a34a6a78fc336a9af15bab083 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 16:12:46 +0100 Subject: [PATCH] ax(mining): use predictable names in usage-example comments Single-letter variables v, c, d in GetVersion/GetCommit/GetBuildDate comments violated AX Principle 1 (predictable names over short names). Replaced with versionString, commitHash, buildDate. Co-Authored-By: Charon --- pkg/mining/version.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mining/version.go b/pkg/mining/version.go index 55e5c6e..20e4f4f 100644 --- a/pkg/mining/version.go +++ b/pkg/mining/version.go @@ -13,17 +13,17 @@ var ( date = "unknown" ) -// v := mining.GetVersion() // "1.2.3" or "dev" when unset +// versionString := mining.GetVersion() // "1.2.3" or "dev" when unset func GetVersion() string { return version } -// c := mining.GetCommit() // "a1b2c3d" or "none" when unset +// commitHash := mining.GetCommit() // "a1b2c3d" or "none" when unset func GetCommit() string { return commit } -// d := mining.GetBuildDate() // "2026-04-02T00:00:00Z" or "unknown" when unset +// buildDate := mining.GetBuildDate() // "2026-04-02T00:00:00Z" or "unknown" when unset func GetBuildDate() string { return date }