mirror of
https://github.com/zhigang1992/ReactiveCocoa.git
synced 2026-01-12 22:51:30 +08:00
Use println directly instead of {println($0)}
This commit is contained in:
@@ -177,7 +177,7 @@ let (signal, sink) = Signal<Int, NoError>.pipe()
|
||||
|
||||
let collected = signal |> collect
|
||||
|
||||
collected.observe(next: { println($0) })
|
||||
collected.observe(next: println)
|
||||
|
||||
sendNext(sink, 1) // nothing printed
|
||||
sendNext(sink, 2) // nothing printed
|
||||
|
||||
Reference in New Issue
Block a user