Skip to content

Commit 88aa4f5

Browse files
authored
「TypeScript」の節の文面を修正 (#922)
1 parent 740ccb7 commit 88aa4f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/4-advanced/03-typescript/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function repeat(text: string, times: number): string {
145145

146146
## 部分型の関係
147147

148-
TypeScriptの型には包含関係があり、`T``U`の部分集合であるとき、`T``U`**部分型**であるといいます。
148+
TypeScriptの型には包含関係があり、`T`が型`U`の部分集合であるとき、`T``U`**部分型**であるといいます。
149149

150150
この部分型関係は、**全体集合を`unknown`型、空集合を`never`**として、次の図のように整理できます。
151151

@@ -445,7 +445,7 @@ window.onload = (e) => {
445445

446446
## ジェネリクス
447447

448-
引数を一つ受け取り、その値をそのまま返す関数を考えてみよう
448+
引数を一つ受け取り、その値をそのまま返す関数を考えてみましょう
449449

450450
```typescript
451451
function identity(x) {

0 commit comments

Comments
 (0)