Skip to content

Commit

Permalink
Fix typos in godoc (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored and schristoff committed Nov 21, 2019
1 parent a989b09 commit 9ecdba6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ type Config struct {

// NoSnapshotRestoreOnStart controls if raft will restore a snapshot to the
// FSM on start. This is useful if your FSM recovers from other mechanisms
// than raft snapshotting. Snapshot metadata will still be used to initalize
// than raft snapshotting. Snapshot metadata will still be used to initialize
// raft's configuration and index values. This is used in NewRaft and
// RestoreCluster.
NoSnapshotRestoreOnStart bool
Expand Down
2 changes: 1 addition & 1 deletion discard_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (d *DiscardSnapshotStore) Open(id string) (*SnapshotMeta, io.ReadCloser, er
return nil, nil, fmt.Errorf("open is not supported")
}

// Write returns successfully with the lenght of the input byte slice
// Write returns successfully with the length of the input byte slice
// to satisfy the WriteCloser interface
func (d *DiscardSnapshotSink) Write(b []byte) (int, error) {
return len(b), nil
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func init() {
// Ensure we use a high-entropy seed for the psuedo-random generator
// Ensure we use a high-entropy seed for the pseudo-random generator
rand.Seed(newSeed())
}

Expand Down

0 comments on commit 9ecdba6

Please sign in to comment.