Skip to content

Commit

Permalink
docs(fromFetch): typo in docs (#4722)
Browse files Browse the repository at this point in the history
* docs(fromFetch): typo in docs

* docs(fromFetch): typo in docs
  • Loading branch information
elie29 authored and cartant committed Apr 26, 2019
1 parent 1dbbafa commit cd5895d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/observable/dom/fetch.ts
Expand Up @@ -23,7 +23,7 @@ import { Observable } from '../../Observable';
*
* const data$ = fromFetch('https://api.github.com/users?per_page=5').pipe(
* switchMap(response => {
* if(responose.ok) {
* if (response.ok) {
* // OK return data
* return response.json();
* } else {
Expand All @@ -34,7 +34,7 @@ import { Observable } from '../../Observable';
* catchError(err => {
* // Network or other error, handle appropriately
* console.error(err);
* return of({ error: true, message: error.message })
* return of({ error: true, message: err.message })
* })
* );
*
Expand All @@ -58,7 +58,7 @@ export function fromFetch(input: string | Request, init?: RequestInit): Observab
let unsubscribed = false;

if (init) {
// If we a signal is provided, just have it teardown. It's a cancellation token, basically.
// If a signal is provided, just have it teardown. It's a cancellation token, basically.
if (init.signal) {
outerSignalHandler = () => {
if (!signal.aborted) {
Expand Down

0 comments on commit cd5895d

Please sign in to comment.