Fixing indentation in Stack

This commit is contained in:
Denis-Cosmin Nutiu 2017-10-28 23:17:16 +03:00
parent 7f447978a2
commit 82181156c6

View file

@ -39,14 +39,12 @@ func (st *StringStack) Push(item interface{}) {
} }
value, ok := item.(string) value, ok := item.(string)
if ok == false { if ok == false {
panic(StackInvalidTypeError) panic(StackInvalidTypeError)
} }
st.items[st.index] = value st.items[st.index] = value
st.index++ st.index++
} }
func (st *StringStack) Pop() interface{} { func (st *StringStack) Pop() interface{} {