<From version 1.0.2>
In the section “Flattening Publishers”, exampleOf(“flatMap”), item 3 is listed as
// 3
chat
.sink(receiveValue: { print($0.message.value) })
.store(in: &subscriptions)
However to produce the output later described as saying, for example, “Charlotte wrote: Hi, I’m Charlotte!”, it should read
// 3
chat
.sink( receiveValue: { print($0.name, "wrote:", $0.message.value) })
.store(in: &subscriptions)