* docs(toh-6): update 'let' to 'const' for delete hero (#2355)

Since the update function does use const url instead of let url,
this seemed like a good consistency to have between similar blocks of code.

* docs(toh-6): update 'let' to 'const' for delete hero
This commit is contained in:
Kevin Leung 2016-09-27 12:56:04 -07:00 committed by Ward Bell
parent 9671d99585
commit 5cee3b9b8b
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export class HeroService {
// #docregion delete
delete(id: number): Promise<void> {
let url = `${this.heroesUrl}/${id}`;
const url = `${this.heroesUrl}/${id}`;
return this.http.delete(url, {headers: this.headers})
.toPromise()
.then(() => null)