From 1e5012b2ccee42d904ee8729457343ba4eceb556 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 8542a0877b..65afef4474 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')) ); }