Skip to content

Commit

Permalink
*: fix method comments
Browse files Browse the repository at this point in the history
Make method comments start with the corresponding method name.

Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Feb 9, 2024
1 parent 32c24ca commit c8df9ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion payload/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion payload/recovery_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8df9ff

Please sign in to comment.