Sfoglia il codice sorgente

Trivial formatting

Evan Huus 10 anni fa
parent
commit
09089ab65e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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.