Skip to content

Commit f3120fb

Browse files
committed
Merge branch 'main' of github.com:total-typescript/total-typescript-book
2 parents 6b2cc39 + bc3cdf9 commit f3120fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book-content/chapters/05-unions-literals-and-narrowing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ type DigitalFormat = "MP3" | "FLAC";
111111
type PhysicalFormat = "LP" | "CD" | "Cassette";
112112
```
113113

114-
We could then specify `AlbumFormat` as a union of `DigitalFormat` and `PhysicalFormat:
114+
We could then specify `AlbumFormat` as a union of `DigitalFormat` and `PhysicalFormat`:
115115

116116
```tsx
117117
type AlbumFormat = DigitalFormat | PhysicalFormat;
@@ -577,7 +577,7 @@ In this case, if `username` is not a string, we know it's `null` and could retur
577577

578578
```typescript
579579
function validateUsername(username: string | null | undefined): boolean {
580-
if (typeof name !== "string") {
580+
if (typeof username !== "string") {
581581
return false;
582582
}
583583

0 commit comments

Comments
 (0)