Fixing return type.
This commit is contained in:
parent
17cc53fb1e
commit
20e3ca26eb
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ func isEven(n int) bool {
|
|||
func main() {
|
||||
fmt.Println("Hello World")
|
||||
stream.Of(0, 1, 2, 3, 4).
|
||||
Filter(func(n int) {
|
||||
Filter(func(n int) bool {
|
||||
return n%2 == 0
|
||||
}).
|
||||
ForEach(func(n int) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue