Skip to content

Commit bdc6a9e

Browse files
authored
Fix casts.md (#36)
* Change a word * Obey to the translation table * Make the statement more natural
1 parent b4feaea commit bdc6a9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/casts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using the `as` keyword: `expr as Type`.
1616
明示的に引き起こすことが出来ます。しかし、いくつかの変換はキャストを必要とします。
1717
型強制は普及していて、大体の場合、害はないのですが、これらの "真のキャスト" は稀で、
1818
潜在的に危険です。ですから、キャストは `as` キーワードを用いて、明示的に
19-
呼び起こさなければなりません: `expr as Type`
19+
実行しなければなりません: `expr as Type`
2020

2121
<!--
2222
True casts generally revolve around raw pointers and the primitive numeric
@@ -32,7 +32,7 @@ at the type level, or else they will be prevented statically. For instance,
3232
もしキャストが何か微妙なコーナーケースを引き起こしたとしても、
3333
何の指摘もされないでしょう。キャストは単に成功します。そうは言ったものの、
3434
キャストは型レベルで正しくなければなりません。でなければそのキャストは静的に
35-
防がれます。例えば、 `7u8 as bool` はコンパイルされません
35+
防がれます。例えば、 `7u8 as bool` はコンパイルできません
3636

3737
<!--
3838
That said, casts aren't `unsafe` because they generally can't violate memory
@@ -73,7 +73,7 @@ primitive:
7373
-->
7474

7575
* `*T as *U` 但し `T, U: Sized`
76-
* `*T as *U` TODO: アンサイズの場合について説明する
76+
* `*T as *U` TODO: サイズが不定の場合について説明する
7777
* `*T as integer`
7878
* `integer as *T`
7979
* `number as number`

0 commit comments

Comments
 (0)