summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-09-04 09:06:37 -0700
committerAdam Bard <github@adambard.com>2013-09-04 09:06:37 -0700
commita9880277b210c40499cb7a7a440c2e0e87341042 (patch)
tree9f1f0df99116249ca981b1869f83651750845d74
parenta8468cc6248747fd7c199522e2f6b12beae28a65 (diff)
parent284f1ea407b576dad1b92bc59d9330c608b7adf6 (diff)
Merge pull request #307 from NKCSS/master
Changed Print function to show the variable type
-rw-r--r--go.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/go.html.markdown b/go.html.markdown
index d7622ded..eca5dae0 100644
--- a/go.html.markdown
+++ b/go.html.markdown
@@ -1,4 +1,4 @@
----
+---
name: Go
category: language
language: Go
@@ -259,7 +259,7 @@ func learnConcurrency() {
// that are ready to communicate.
select {
case i := <-c: // the value received can be assigned to a variable
- fmt.Println("it's a", i)
+ fmt.Printf("it's a %T", i)
case <-cs: // or the value received can be discarded
fmt.Println("it's a string")
case <-cc: // empty channel, not ready for communication.