Ver código fonte

Trivial formatting

Evan Huus 10 anos atrás
pai
commit
09089ab65e
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      queue.go

+ 3 - 1
queue.go

@@ -17,7 +17,9 @@ type Queue struct {
 
 // New constructs and returns a new Queue.
 func New() *Queue {
-	return &Queue{buf: make([]interface{}, minQueueLen)}
+	return &Queue{
+		buf: make([]interface{}, minQueueLen),
+	}
 }
 
 // Length returns the number of elements currently stored in the queue.