Skip to content

Commit

Permalink
enable "misspell" linter and fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
johningve committed Feb 17, 2021
1 parent 5a3d639 commit 3309087
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ linters:
enable:
- golint
- gocyclo
- misspell

linters-settings:
gocyclo:
Expand Down
2 changes: 1 addition & 1 deletion consensus/chainedhotstuff/chainedhotstuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (hs *chainedhotstuff) Leaf() *hotstuff.Block {
return hs.bLeaf
}

// BlockChain returns the datastructure contianing the blocks known to the replica
// BlockChain returns the datastructure containing the blocks known to the replica
func (hs *chainedhotstuff) BlockChain() hotstuff.BlockChain {
return hs.blocks
}
Expand Down
2 changes: 1 addition & 1 deletion hotstuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ type QuorumCert interface {
BlockHash() Hash
}

// Signer implements the methods requried to create signatures and certificates.
// Signer implements the methods required to create signatures and certificates.
type Signer interface {
// Sign signs a single block and returns the partial certificate.
Sign(block *Block) (cert PartialCert, err error)
Expand Down

0 comments on commit 3309087

Please sign in to comment.