Skip to content

Commit

Permalink
day 43 - fix a golint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Oct 3, 2018
1 parent c40bac9 commit fae4626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day43/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package day43

import "fmt"

var stackEmptyError = fmt.Errorf("Stack is empty")
var errStackEmpty = fmt.Errorf("Stack is empty")

// maxIntStack is implemented using O(N) extra memory.
type maxIntStack struct {
Expand Down Expand Up @@ -52,5 +52,5 @@ func (mis *maxIntStack) Max() (int, error) {

// StackEmptyError returns the instance of the error representing an empty stack.
func StackEmptyError() error {
return stackEmptyError
return errStackEmpty
}

0 comments on commit fae4626

Please sign in to comment.