Merge pull request #90 from iandundas/develop

Fixed Typo & BehaviorSubject's description in Subjects Playground
This commit is contained in:
Krunoslav Zaher 2015-08-12 15:12:40 +02:00
commit af910dc261
1 changed files with 2 additions and 3 deletions

View File

@ -55,10 +55,9 @@ example("ReplaySubject") {
## BehaviorSubject a.k.a. Variable
ReplaySubject emits to any observer all of the items, in the buffer, that were emitted by the source
BehaviorSubject is similar to ReplaySubject except it only remembers the last item. This means that all subscribers will receive a value immediately (unless it is already completed).
*/
example("ReplaySubject") {
example("BehaviorSubject") {
let subject = BehaviorSubject(value: "z")
writeSequenceToConsole("1", subject)
sendNext(subject, "a")