Skip to content

Commit 7bd036f

Browse files
committed
3.1 Samples match runnable examples
1 parent bb3b866 commit 7bd036f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Part 3 - Taming the sequence/1. Side effects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Rx is designed like functional programming, but it exists within an object orien
236236

237237
```java
238238
public class BrakeableService {
239-
public BehaviorSubject<String> items = BehaviorSubject.create("Later");
239+
public BehaviorSubject<String> items = BehaviorSubject.create("Greet");
240240
public void play() {
241241
items.onNext("Hello");
242242
items.onNext("and");
@@ -249,7 +249,7 @@ The code above does not prevent a naughty consumer from changing your `items` wi
249249

250250
```java
251251
public class BrakeableService {
252-
private final BehaviorSubject<String> items = BehaviorSubject.create("Later");
252+
private final BehaviorSubject<String> items = BehaviorSubject.create("Greet");
253253

254254
public BehaviorSubject<String> getValues() {
255255
return items;

0 commit comments

Comments
 (0)