Skip to content

Commit

Permalink
chore: fix typos (gnolang#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlagermin authored and gfanton committed Nov 9, 2023
1 parent 3d4e37e commit 78e1365
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
> simulated by the Gnomes of the Greater Resistance.
Gno is an interpreted and fully-deterministic implementation of the Go
programming language, designed to build succint and composable smart contracts.
programming language, designed to build succinct and composable smart contracts.
The first blockchain to use it is Gno.land, a
[Proof of Contribution](./docs/proof-of-contribution.md)-based chain, backed by
a variation of the [Tendermint](https://docs.tendermint.com/v0.34/introduction/what-is-tendermint.html)
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/consensus/ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (t *timeoutTicker) stopTimer() {
}

// send on tickChan to start a new timer.
// timers are interupted and replaced by new ticks from later steps
// timers are interrupted and replaced by new ticks from later steps
// timeouts of 0 on the tickChan will be immediately relayed to the tockChan
func (t *timeoutTicker) timeoutRoutine() {
t.Logger.Debug("Starting timeout routine")
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/rpc/client/mock/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Call struct {
Error error
}

// GetResponse will generate the apporiate response for us, when
// GetResponse will generate the appropriate response for us, when
// using the Call struct to configure a Mock handler.
//
// When configuring a response, if only one of Response or Error is
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/types/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const (
)

// MaxEvidencePerBlock returns the maximum number of evidences
// allowed in the block and their maximum total size (limitted to 1/10th
// allowed in the block and their maximum total size (limited to 1/10th
// of the maximum block size).
// TODO: change to a constant, or to a fraction of the validator set size.
// See https://github.com/tendermint/classic/issues/2590
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/db/prefix_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func stripPrefix(key []byte, prefix []byte) (stripped []byte) {
panic("should not happen")
}
if !bytes.Equal(key[:len(prefix)], prefix) {
panic("should not happne")
panic("should not happen")
}
return key[len(prefix):]
}
2 changes: 1 addition & 1 deletion tm2/pkg/p2p/conn/secret_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func TestSecretConnectionReadWrite(t *testing.T) {
// A helper that will run with (fooConn, fooWrites, fooReads) and vice versa
genNodeRunner := func(id string, nodeConn kvstoreConn, nodeWrites []string, nodeReads *[]string) async.Task {
return func(_ int) (interface{}, error, bool) {
// Initiate cryptographic private key and secret connection trhough nodeConn.
// Initiate cryptographic private key and secret connection through nodeConn.
nodePrvKey := ed25519.GenPrivKey()
nodeSecretConn, err := MakeSecretConnection(nodeConn, nodePrvKey)
if err != nil {
Expand Down

0 comments on commit 78e1365

Please sign in to comment.