Skip to content

Commit

Permalink
fix jumplines
Browse files Browse the repository at this point in the history
  • Loading branch information
solrac97gr committed Aug 28, 2024
1 parent f796b6a commit 35ef917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/7-patrones-concurrencia-go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ func producer(id int, ch chan<- int, wg *sync.WaitGroup) {
defer wg.Done()
for i := 0; i < 5; i++ {
ch <- i
fmt.Printf("Producer %d produced %d\n", id, i)
fmt.Printf("Producer %d produced %d\\n", id, i)
}
}
func consumer(id int, in <-chan int, out chan<- int, wg *sync.WaitGroup) {
defer wg.Done()
for v := range in {
out <- v * 2
fmt.Printf("Consumer %d processed %d\n", id, v)
fmt.Printf("Consumer %d processed %d\\n", id, v)
}
}
func main() {
Expand Down

0 comments on commit 35ef917

Please sign in to comment.