Correct spelling in comment.

This commit is contained in:
David E Watson 2017-05-18 13:31:26 -07:00
parent 5f3f170919
commit 204fb62d49

View File

@ -71,7 +71,7 @@ const (
DefaultRetryPeriod = 2 * time.Second
)
// NewLeadereElector creates a LeaderElector from a LeaderElecitionConfig
// NewLeaderElector creates a LeaderElector from a LeaderElectionConfig
func NewLeaderElector(lec LeaderElectionConfig) (*LeaderElector, error) {
if lec.LeaseDuration <= lec.RenewDeadline {
return nil, fmt.Errorf("leaseDuration must be greater than renewDeadline")