Skip to content

Commit df7a9e8

Browse files
small mod
1 parent 86d611a commit df7a9e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

toolbucket.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ func (s *PointStack) Push(value Point) {
4646

4747
func (s *PointStack) Pop() (value Point) {
4848
if s.size > 0 {
49-
value, s.top = s.top.value, s.top.next
49+
value = s.top.value
50+
s.top = s.top.next
5051
s.size--
5152
return
5253
}

0 commit comments

Comments
 (0)