style(docs-infra): fix indentation in `rx-library` example (#31553)

PR Close #31553
This commit is contained in:
Ivan Tham 2019-07-14 22:45:09 +08:00 committed by Matias Niemelä
parent c529be9f24
commit edc51f76c4
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ import { from } from 'rxjs';
const data = from(fetch('/api/endpoint'));
// Subscribe to begin listening for async result
data.subscribe({
next(response) { console.log(response); },
error(err) { console.error('Error: ' + err); },
complete() { console.log('Completed'); }
next(response) { console.log(response); },
error(err) { console.error('Error: ' + err); },
complete() { console.log('Completed'); }
});
// #enddocregion promise