Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 5cee3b9

Browse files
StoicLoofahwardbell
authored andcommitted
* 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
1 parent 9671d99 commit 5cee3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/docs/_examples/toh-6/ts/app/hero.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class HeroService {
4242

4343
// #docregion delete
4444
delete(id: number): Promise<void> {
45-
let url = `${this.heroesUrl}/${id}`;
45+
const url = `${this.heroesUrl}/${id}`;
4646
return this.http.delete(url, {headers: this.headers})
4747
.toPromise()
4848
.then(() => null)

0 commit comments

Comments
 (0)