Skip to content

Commit 643be67

Browse files
committed
3.1 fixed example format
1 parent 6d4f9b3 commit 643be67

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
@@ -265,8 +265,8 @@ public class BrakeableService {
265265

266266
Now our reference is safe, but we are still exposing a reference to a `Subject`. Anyone can call `onNext` on our `Subject` and inject values in our sequence. We should only return `Observable<T>`. `Subject`s extend `Observable` and we can cast our subject
267267

268-
```
269-
public Observable<String> getValues() {
268+
```java
269+
public Observable<String> getValuesUnsafe() {
270270
return items;
271271
}
272272
```

0 commit comments

Comments
 (0)