ax(node): replace prose constant comment with usage example
Some checks failed
Test / test (push) Waiting to run
Security Scan / security (push) Has been cancelled

ChallengeSize comment restated the name ("is the size of the challenge
in bytes") — violating AX Principle 2. Replace with a concrete usage
example showing how the constant is used at call sites.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 12:04:30 +01:00
parent bde60612f1
commit bd11abb7df
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -18,7 +18,8 @@ import (
"github.com/adrg/xdg"
)
// ChallengeSize is the size of the challenge in bytes
// challenge := make([]byte, ChallengeSize)
// rand.Read(challenge)
const ChallengeSize = 32
// challenge, err := node.GenerateChallenge()