Skip to content

Commit 7272ef6

Browse files
Fix TS function example on README (#26)
1 parent a132360 commit 7272ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ interface Greeting {
302302
*/
303303
export function greet(title: string, firstName: string, lastName: string): Greeting {
304304
return {
305-
polite: `Hello ${name.title} ${name.lastName}`,
306-
casual: `G'day ${name.firstName}`
305+
polite: `Hello ${title} ${lastName}`,
306+
casual: `G'day ${firstName}`
307307
}
308308
}
309309
```

0 commit comments

Comments
 (0)