From c8df9ff9ce019732cf9682ddad7d988cfd3539ea Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 9 Feb 2024 18:10:12 +0300 Subject: [PATCH] *: fix method comments Make method comments start with the corresponding method name. Signed-off-by: Anna Shaleva --- block/block.go | 2 +- payload/message.go | 2 +- payload/recovery_message.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/block.go b/block/block.go index 9a16a1c5..3235c567 100644 --- a/block/block.go +++ b/block/block.go @@ -50,7 +50,7 @@ type ( // Transactions returns block's transaction list. Transactions() []Transaction - // SetTransaction sets block's transaction list. + // SetTransactions sets block's transaction list. SetTransactions([]Transaction) } diff --git a/payload/message.go b/payload/message.go index a7ed2241..d8ed52db 100644 --- a/payload/message.go +++ b/payload/message.go @@ -18,7 +18,7 @@ type ( // payload was originated from. ValidatorIndex() uint16 - // SetValidator index sets validator index. + // SetValidatorIndex sets validator index. SetValidatorIndex(i uint16) Height() uint32 diff --git a/payload/recovery_message.go b/payload/recovery_message.go index 28eae4ee..117473e8 100644 --- a/payload/recovery_message.go +++ b/payload/recovery_message.go @@ -17,7 +17,7 @@ type ( GetPrepareRequest(p ConsensusPayload, validators []crypto.PublicKey, primary uint16) ConsensusPayload // GetPrepareResponses returns a slice of PrepareResponse in any order. GetPrepareResponses(p ConsensusPayload, validators []crypto.PublicKey) []ConsensusPayload - // GetChangeView returns a slice of ChangeView in any order. + // GetChangeViews returns a slice of ChangeView in any order. GetChangeViews(p ConsensusPayload, validators []crypto.PublicKey) []ConsensusPayload // GetCommits returns a slice of Commit in any order. GetCommits(p ConsensusPayload, validators []crypto.PublicKey) []ConsensusPayload