From ef0b54de184d5270aa71c4aec0fcd8a94eabe8d6 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Thu, 1 Feb 2018 17:29:58 -0500 Subject: [PATCH 1/2] Fix typo in switch --- examples/switch/switch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/switch/switch.go b/examples/switch/switch.go index 231558b..4df7afe 100644 --- a/examples/switch/switch.go +++ b/examples/switch/switch.go @@ -42,7 +42,7 @@ func main() { } // A type `switch` compares types instead of values. You - // can use this to discover the the type of an interface + // can use this to discover the type of an interface // value. In this example, the variable `t` will have the // type corresponding to its clause. whatAmI := func(i interface{}) { From c6f016430a4bb406fd8d45c235424446dac0efcb Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Thu, 1 Feb 2018 17:30:13 -0500 Subject: [PATCH 2/2] Rebuild for switch changes --- examples/switch/switch.hash | 4 ++-- public/switch | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/switch/switch.hash b/examples/switch/switch.hash index 1bde959..5559e1a 100644 --- a/examples/switch/switch.hash +++ b/examples/switch/switch.hash @@ -1,2 +1,2 @@ -d255a1fe931fe471b745aeb66830b10216617479 -kxkBPpY_ue +b47004b3e3b6d787ea98642dc5b955df57cd2bcd +TJ4Az0KuLfL diff --git a/public/switch b/public/switch index 84ac576..5e82e98 100644 --- a/public/switch +++ b/public/switch @@ -40,7 +40,7 @@ branches.

- +
package main
 
@@ -138,7 +138,7 @@ to express if/else logic. Here we also show how the

A type switch compares types instead of values. You -can use this to discover the the type of an interface +can use this to discover the type of an interface value. In this example, the variable t will have the type corresponding to its clause.