From 8e18fd7e40e856cfa0bf71446e1c7378383928b4 Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 28 Nov 2019 21:34:33 +0000 Subject: [PATCH 1/2] correcting listat subject --- subjects/listat.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/listat.en.md b/subjects/listat.en.md index 0e1268ed..7cf103d7 100644 --- a/subjects/listat.en.md +++ b/subjects/listat.en.md @@ -51,8 +51,8 @@ And its output : ```console student@ubuntu:~/piscine-go/test$ go build student@ubuntu:~/piscine-go/test$ ./test -1 -how are +you +hello student@ubuntu:~/piscine-go/test$ ``` From 82c871f397c38d0453342d5357e8bc0bba703e03 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 29 Nov 2019 10:27:34 +0000 Subject: [PATCH 2/2] correction of listforeachif replacing < for > --- subjects/listforeachif.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index 09d5b125..3075af54 100644 --- a/subjects/listforeachif.en.md +++ b/subjects/listforeachif.en.md @@ -38,7 +38,7 @@ func IsPositive_node(node *NodeL) bool { func IsNegative_node(node *NodeL) bool { switch node.Data.(type) { case int, float32, float64, byte: - return node.Data.(int) > 0 + return node.Data.(int) < 0 case string, rune: return false }