docs: fix typo in toh-pg6.md (#49141)

Line 425. Change burning to burn.
PR Close #49141
This commit is contained in:
John Manners 2023-02-20 12:29:14 +00:00 committed by Dylan Hunn
parent fda3f677d1
commit acff3c6d86

View file

@ -422,7 +422,7 @@ The `searchTerms` becomes an `Observable` emitting a steady stream of search ter
### Chaining RxJS operators
Passing a new search term directly to the `searchHeroes()` after every user keystroke creates excessive HTTP requests, which taxes server resources and burning through data plans.
Passing a new search term directly to the `searchHeroes()` after every user keystroke creates excessive HTTP requests, which taxes server resources and burns through data plans.
Instead, the `ngOnInit()` method pipes the `searchTerms` observable through a sequence of RxJS operators that reduce the number of calls to the `searchHeroes()`. Ultimately, this returns an observable of timely hero search results where each one is a `Hero[]`.