Skip to content

Commit dd45b60

Browse files
authored
Merge pull request basarat#451 from y-yagi/patch-2
Highlight type annotations example code
2 parents 8399fe2 + 593a9b0 commit dd45b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/type-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ As mentioned before Types are annotated using `:TypeAnnotation` syntax. Anything
1010

1111
The following example demonstrates type annotations for variables, function parameters and function return values:
1212

13-
```
13+
```ts
1414
var num: number = 123;
1515
function identity(num: number): number {
1616
return num;

0 commit comments

Comments
 (0)