Fixing indentation in Stack
This commit is contained in:
parent
7f447978a2
commit
82181156c6
1 changed files with 0 additions and 2 deletions
|
@ -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{} {
|
||||||
|
|
Loading…
Reference in a new issue