Skip to content

Commit

Permalink
Merge pull request #44 from nmarch213/patch-1
Browse files Browse the repository at this point in the history
fix(typo): Update `name` to `username` in example solution
  • Loading branch information
mattpocock committed Jul 15, 2024
2 parents 6914192 + 6ade929 commit bc3cdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book-content/chapters/05-unions-literals-and-narrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ In this case, if `username` is not a string, we know it's `null` and could retur

```typescript
function validateUsername(username: string | null | undefined): boolean {
if (typeof name !== "string") {
if (typeof username !== "string") {
return false;
}

Expand Down

0 comments on commit bc3cdf9

Please sign in to comment.