Peter H. Froehlich 8 년 전
부모
커밋
ab0ff611a6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      queue/queue.go

+ 2 - 2
queue/queue.go

@@ -89,14 +89,14 @@ func (q *Queue) resize(size int) {
 // lazyGrow grows the underlying slice if necessary.
 func (q *Queue) lazyGrow() {
 	if q.full() {
-		q.resize(len(q.rep)*2)
+		q.resize(len(q.rep) * 2)
 	}
 }
 
 // lazyShrink shrinks the underlying slice if advisable.
 func (q *Queue) lazyShrink() {
 	if q.sparse() {
-		q.resize(len(q.rep)/2)
+		q.resize(len(q.rep) / 2)
 	}
 }