ax(mining): replace prose comment on ListAvailableMiners with usage example
AX Principle 2 — comments must show HOW with real values, not restate what the type signature already says. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
794a584766
commit
3f93aa4a47
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ func (m *Manager) RegisterMiner(miner Miner) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ListAvailableMiners returns a list of available miners that can be started.
|
||||
// for _, available := range manager.ListAvailableMiners() { log.Println(available.Name) }
|
||||
func (m *Manager) ListAvailableMiners() []AvailableMiner {
|
||||
return []AvailableMiner{
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue