Skip to content

Commit

Permalink
reference username instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarch213 authored Jul 11, 2024
1 parent 399c25f commit 6ade929
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 6ade929

Please sign in to comment.