Browse Source

correction of listforeachif replacing < for >

content-update
lee 5 years ago
parent
commit
82c871f397
  1. 2
      subjects/listforeachif.en.md

2
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
}

Loading…
Cancel
Save