Update main.go

This commit is contained in:
Zane.Y 2017-07-15 00:51:10 +08:00 committed by GitHub
parent db7b3b10bd
commit 430c95659d
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ func main() {
for i := 0; i < 100; i++ {
list[i] = i * 2
}
tmp := NewParallelStream(list).Filter(func(item interface{}) bool {
tmp := NewStream(list).Filter(func(item interface{}) bool {
if item.(int) < 100 {
return false
}