Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 3cbac0f

Browse files
Update retrywhen.md
Typo fixes and consistency between example headings
1 parent 52e8076 commit 3cbac0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/core/operators/retrywhen.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
### `Rx.Observable.prototype.retryWhen(notifier)`
22
[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/retrywhen.js "View in source")
33

4-
Repeats the source observable sequence on error when the notifier emits a next value. If the source observable errors and the notifier completes, it will complete the source sequence
4+
Repeats the source observable sequence on error when the notifier emits a next value. If the source observable errors and the notifier completes, it will complete the source sequence.
55

66
#### Arguments
77
1. `notificationHandler` *(`Function`)*: A handler that is passed an observable sequence of errors raised by the source observable and returns
8-
and observable that either continues, completes or errors. This behavior is then applied to the source observable.
8+
an observable that either continues, completes or errors. This behavior is then applied to the source observable.
99

1010
#### Returns
1111
*(`Observable`)*: An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully or is notified to error or complete.
1212

13-
#### Example: delayed retry
13+
#### Example: Delayed retry
1414
```js
1515
var source = Rx.Observable.interval(1000)
1616
.map(function(n) {
@@ -117,7 +117,7 @@ var subscription = source.subscribe(
117117
// => Completed
118118
```
119119

120-
An incrememntal back-off strategy for handling errors:
120+
#### Example: An incremental back-off strategy for handling errors
121121
```js
122122
Rx.Observable.create(function (o) {
123123
console.log("subscribing");

0 commit comments

Comments
 (0)