diff options
-rw-r--r-- | gwic.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -79,11 +79,12 @@ func printqueue(q *queue, words chan string, kw string, left int, out chan strin continue } - q.insert(fmt.Sprintf("%q", w)) + qstr := fmt.Sprintf("%q", w) + q.insert(qstr) wc := &work{c: make(chan string, 10), left: 5, done: make(chan struct{})} - hungryhippos = feedworkers(hungryhippos, w) + hungryhippos = feedworkers(hungryhippos, qstr) sl := make([]string, MAX) copy(sl, q.q[6:]) |