diff --git a/http/service_tls_test.go b/http/service_tls_test.go index 34c918fb..91b7c2d2 100644 --- a/http/service_tls_test.go +++ b/http/service_tls_test.go @@ -190,7 +190,7 @@ func Test_TLSServiceSecureMutual(t *testing.T) { url := fmt.Sprintf("https://%s", s.Addr().String()) - // Create a TLS Config which wil require verfication of the server cert, and trusts the CA cert. + // Create a TLS Config which wil require verification of the server cert, and trusts the CA cert. tlsConfig := &tls.Config{InsecureSkipVerify: false} tlsConfig.RootCAs = x509.NewCertPool() ok := tlsConfig.RootCAs.AppendCertsFromPEM(caCertPEM) diff --git a/log/log.go b/log/log.go index 4f454ac9..612499e1 100644 --- a/log/log.go +++ b/log/log.go @@ -53,7 +53,7 @@ func (l *Log) Indexes() (uint64, uint64, error) { // log entry written to the Raft log. Returns an index of // zero if no such log exists. func (l *Log) LastCommandIndex(fi, li uint64) (uint64, error) { - // Check for empty log. According to the interface defintion, if + // Check for empty log. According to the interface definition, if // the first index is zero, or the last, the log is empty. if fi == 0 || li == 0 { return 0, nil diff --git a/queue/queue.go b/queue/queue.go index 6b955804..09ffcc06 100644 --- a/queue/queue.go +++ b/queue/queue.go @@ -122,7 +122,7 @@ func New(maxSize, batchSize int, t time.Duration) *Queue { // Write queues a request, and returns a monotonically incrementing // sequence number associated with the slice of statements. If one // slice has a larger sequence number than a number, the former slice -// will always be commited to Raft before the latter slice. +// will always be committed to Raft before the latter slice. // // c is an optional channel. If non-nil, it will be closed when the Request // containing these statements is closed.