From 82c871f397c38d0453342d5357e8bc0bba703e03 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 29 Nov 2019 10:27:34 +0000 Subject: [PATCH] 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 }