Skip to content

Commit 3fee7b0

Browse files
committed
Update 3. Inspection.md
1 parent 2a15a62 commit 3fee7b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Part 2 - Sequence Basics/3. Inspection.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ All: Completed
6767
Completed
6868
```
6969

70-
If the source observable emits an error, then `all` becomes irrelavant and the error passes through, terminating the sequence.
70+
If the source observable emits an error, then `all` becomes irrelevant and the error passes through, terminating the sequence.
7171

7272
```java
7373
Observable<Integer> values = Observable.create(o -> {
@@ -172,7 +172,7 @@ false
172172
Completed
173173
```
174174

175-
Falsehood is established as soon as the first value is emitted. True will can be returned once the source observable has terminated.
175+
Falsehood is established as soon as the first value is emitted. `true` will be returned once the source observable has terminated.
176176

177177
## contains
178178

@@ -202,7 +202,7 @@ If we had used `contains(4)` where we used `contains(4L)`, nothing would be prin
202202

203203
## defaultIfEmpty
204204

205-
If an empty sequence would cause you problems, rather than checking with `isEmpty` and handling the case, you can force an obserable to emit a value on completion if didn't emit anything before completing.
205+
If an empty sequence would cause you problems, rather than checking with `isEmpty` and handling the case, you can force an observable to emit a value on completion if it didn't emit anything before completing.
206206

207207
![](https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/defaultIfEmpty.png)
208208

@@ -310,7 +310,7 @@ true
310310
Completed
311311
```
312312

313-
If swap the operator for the one that is commented out (i.e the one that uses the the standard `Object.equals`), the result would be `false`.
313+
If we swap the operator for the one that is commented out, i.e, the one using the standard `Object.equals`, the result would be `false`.
314314

315315
Failing is not part of the comparison. As soon as either sequence fails, the resulting observable forwards the error.
316316

0 commit comments

Comments
 (0)