Skip to content

Commit ef85ff7

Browse files
ianrahmankzaher
authored andcommitted
Additional grammatical fixes
1 parent 6f7d0b9 commit ef85ff7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Documentation/GettingStarted.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ someObservable
235235
}
236236
```
237237

238-
this will always print:
238+
This will always print:
239239

240240
```
241241
Event processing started
@@ -246,7 +246,7 @@ Event processing started
246246
Event processing ended
247247
```
248248

249-
it can never print:
249+
It can never print:
250250

251251
```
252252
Event processing started
@@ -263,7 +263,7 @@ There is one crucial thing to understand about observables.
263263

264264
It is true that `Observable` can generate elements in many ways. Some of them cause side effects and some of them tap into existing running processes like tapping into mouse events, etc.
265265

266-
**But if you just call a method that returns an `Observable`, no sequence generation is performed, and there are no side effects. `Observable` is just a definition how the sequence is generated and what parameters are used for element generation. Sequence generation starts when `subscribe` method is called.**
266+
**However, if you just call a method that returns an `Observable`, no sequence generation is performed and there are no side effects. `Observable` just defines how the sequence is generated and what parameters are used for element generation. Sequence generation starts when `subscribe` method is called.**
267267

268268
E.g. Let's say you have a method with similar prototype:
269269

@@ -284,9 +284,9 @@ let cancel = searchForMe
284284

285285
```
286286

287-
There are a lot of ways how you can create your own `Observable` sequence. Probably the easiest way is using `create` function.
287+
There are a lot of ways to create your own `Observable` sequence. The easiest way is probably to use the `create` function.
288288

289-
Let's create a function which creates a sequence that returns one element upon subscription. That function is called 'just'.
289+
Let's write a function that creates a sequence which returns one element upon subscription. That function is called 'just'.
290290

291291
*This is the actual implementation*
292292

@@ -305,7 +305,7 @@ myJust(0)
305305
})
306306
```
307307

308-
this will print:
308+
This will print:
309309

310310
```
311311
0
@@ -459,7 +459,7 @@ subscription2.dispose()
459459
print("Ended ----")
460460
```
461461

462-
this would print:
462+
This would print:
463463

464464
```
465465
Started ----
@@ -524,7 +524,7 @@ subscription2.dispose()
524524
print("Ended ----")
525525
```
526526

527-
this will print
527+
This will print
528528

529529
```
530530
Started ----
@@ -642,7 +642,7 @@ let subscription = myInterval(0.1)
642642
})
643643
```
644644

645-
and this will print
645+
This will print:
646646

647647
```
648648
Subscribed
@@ -694,7 +694,7 @@ This isn't something that should be practiced often, and is a bad code smell, bu
694694
// ....
695695
```
696696

697-
Every time you do this, somebody will probably write this code somewhere
697+
Every time you do this, somebody will probably write this code somewhere:
698698

699699
```swift
700700
kittens
@@ -704,7 +704,7 @@ Every time you do this, somebody will probably write this code somewhere
704704
.disposed(by: disposeBag)
705705
```
706706

707-
so please try not to do this.
707+
So please try not to do this.
708708

709709
## Playgrounds
710710

0 commit comments

Comments
 (0)