Skip to content

Commit

Permalink
Fix typo im "Enums considered harmful"
Browse files Browse the repository at this point in the history
  • Loading branch information
smack0007 authored Jan 24, 2023
1 parent 11f839f commit 2bb6c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blog/2023/enums-considered-harmful.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export type MyFlags = Flags<typeof MyFlags, "MyFlags">;
const foo: MyFlags = MyFlags.Two;

// This also works.
const bar: MyFlags = MyFlags.One | MyFlags .Two;
const bar: MyFlags = MyFlags.One | MyFlags.Two;

// Unfortunately this also works though.
const baz: MyFlags = 4;
Expand Down

0 comments on commit 2bb6c97

Please sign in to comment.