From be137e61c5f2a285bb3252825decd43c1f9eb0a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:35:13 +0100 Subject: [PATCH] ax(mining): replace APIError prose comment with usage example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX principle 2 — comments must show HOW with real values, not restate what the type declaration already says. Co-Authored-By: Charon --- pkg/mining/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mining/service.go b/pkg/mining/service.go index 8d88b5d..94ebab8 100644 --- a/pkg/mining/service.go +++ b/pkg/mining/service.go @@ -49,7 +49,7 @@ type Service struct { mcpServer *ginmcp.GinMCP } -// APIError represents a structured error response for the API +// APIError{Code: "miner_not_found", Message: "xmrig not running", Retryable: false} type APIError struct { Code string `json:"code"` // Machine-readable error code Message string `json:"message"` // Human-readable message