Skip to content

Commit 2c52f29

Browse files
authored
Update moving-types.md
Remove period in a comment to follow existing style
1 parent 5fea975 commit 2c52f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/moving-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ type Colors = keyof typeof colors;
8888
let color: Colors; // same as let color: "red" | "blue"
8989
color = 'red'; // okay
9090
color = 'blue'; // okay
91-
color = 'reddish; // Error: Type '"reddish"' is not assignable to type '"red" | "blue"'.
92-
color = 'anythingElse'; // Error: Type '"anythingElse"' is not assignable to type '"red" | "blue"'.
91+
color = 'reddish; // Error: Type '"reddish"' is not assignable to type '"red" | "blue"'
92+
color = 'anythingElse'; // Error: Type '"anythingElse"' is not assignable to type '"red" | "blue"'
9393
```
9494

9595
This allows you to have stuff like string enums + constants quite easily, as you just saw in the above example.

0 commit comments

Comments
 (0)