From 2109c30afe9d948468438cd271466ace31f3e6cc Mon Sep 17 00:00:00 2001 From: LHearen Date: Sat, 2 Feb 2019 18:01:45 +0800 Subject: [PATCH] docs: fix shadow variable in tutorial example (#28499) PR Close #28499 --- aio/content/examples/toh-pt6/src/app/hero.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/toh-pt6/src/app/hero.service.ts b/aio/content/examples/toh-pt6/src/app/hero.service.ts index c1e0b4d094..040277d036 100644 --- a/aio/content/examples/toh-pt6/src/app/hero.service.ts +++ b/aio/content/examples/toh-pt6/src/app/hero.service.ts @@ -97,7 +97,7 @@ export class HeroService { /** POST: add a new hero to the server */ addHero (hero: Hero): Observable { return this.http.post(this.heroesUrl, hero, httpOptions).pipe( - tap((hero: Hero) => this.log(`added hero w/ id=${hero.id}`)), + tap((newHero: Hero) => this.log(`added hero w/ id=${newHero.id}`)), catchError(this.handleError('addHero')) ); }