From b8ffb8d14ec2c8a8c43a56e5a51902aa85f29c37 Mon Sep 17 00:00:00 2001 From: eliastor Date: Sat, 18 Jun 2022 08:45:05 +0000 Subject: [PATCH 1/2] wrong solution --- unit2/exercises/e1/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/unit2/exercises/e1/main.go b/unit2/exercises/e1/main.go index 748b320..f31d88c 100644 --- a/unit2/exercises/e1/main.go +++ b/unit2/exercises/e1/main.go @@ -1,6 +1,10 @@ package main -import "golang.org/x/tour/tree" +import ( + "fmt" + + "golang.org/x/tour/tree" +) // Walk walks the tree t sending all values // from the tree to the channel ch. @@ -11,4 +15,5 @@ func Walk(t *tree.Tree, ch chan int) func Same(t1, t2 *tree.Tree) bool func main() { + fmt.Println("wrong solution") } From e72b831aab524753838d996c539656cdbe263ecb Mon Sep 17 00:00:00 2001 From: eliastor Date: Sat, 18 Jun 2022 08:54:26 +0000 Subject: [PATCH 2/2] sample wrong solution --- unit2/exercises/e1/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/unit2/exercises/e1/main.go b/unit2/exercises/e1/main.go index f31d88c..a12a0ed 100644 --- a/unit2/exercises/e1/main.go +++ b/unit2/exercises/e1/main.go @@ -1,8 +1,6 @@ package main import ( - "fmt" - "golang.org/x/tour/tree" ) @@ -15,5 +13,4 @@ func Walk(t *tree.Tree, ch chan int) func Same(t1, t2 *tree.Tree) bool func main() { - fmt.Println("wrong solution") }