From 418314e4d17696414c1081847cb1bcdcb25eb6a6 Mon Sep 17 00:00:00 2001 From: Dmitry Harnitski Date: Wed, 19 Apr 2017 00:24:15 -0400 Subject: [PATCH] fix code formatting --- en/02.7.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.7.md b/en/02.7.md index 7827fa24..f9b65f07 100644 --- a/en/02.7.md +++ b/en/02.7.md @@ -61,7 +61,7 @@ goroutines run in the same memory address space, so you have to maintain synchro cf := make(chan interface{}) ``` channel uses the operator `<-` to send or receive data. -```Go` +```Go ch <- v // send v to channel ch. v := <-ch // receive data from ch, and assign to v ```