Skip to content

Commit 2566ce5

Browse files
committed
Change from キャスティング to キャスト #137
1 parent 33b0f4b commit 2566ce5

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

TranslationTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
| custom type | カスタム型
214214
| argument type | 引数タイプ
215215
| primitive type | プリミティブ型
216-
| casting | キャスティング
216+
| casting | キャスト
217217
| least significant bit | 最下位ビット
218218
| numeric literal | 数値リテラル
219219
| full path | 絶対パス

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- [Aliasing](types/alias.md)
6969
-->
7070
- [](types.md)
71-
- [型キャスティング](types/cast.md)
71+
- [型キャスト](types/cast.md)
7272
- [リテラル](types/literals.md)
7373
- [型推論](types/inference.md)
7474
- [エイリアス](types/alias.md)

src/conversion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!--
77
Primitive types can be converted to each other through [casting].
88
-->
9-
プリミティブ型同士は[キャスティング][casting]を用いて変換できます。
9+
プリミティブ型同士は[キャスト][casting]を用いて変換できます。
1010

1111
<!--
1212
Rust addresses conversion between custom types (i.e., `struct` and `enum`)

src/custom_types/enum/c_like.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ fn main() {
4848
<!--
4949
[casting][cast]
5050
-->
51-
[キャスティング][cast]
51+
[キャスト][cast]
5252

5353
[cast]: ../../types/cast.md

src/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Rustには、プリミティブ型やユーザ定義型を定義したり変換
1515
* Using [type inference]
1616
* [Aliasing] types
1717
-->
18-
* プリミティブ型の間で[キャスティング]を行う
18+
* プリミティブ型の間で[キャスト]を行う
1919
* [リテラル]の型をどれにしたいか指定する
2020
* [型推論]を使う
2121
* 型を[エイリアス]する
@@ -26,7 +26,7 @@ Rustには、プリミティブ型やユーザ定義型を定義したり変換
2626
[type inference]: types/inference.md
2727
[Aliasing]: types/alias.md
2828
-->
29-
[キャスティング]: types/cast.md
29+
[キャスト]: types/cast.md
3030
[リテラル]: types/literals.md
3131
[型推論]: types/inference.md
3232
[エイリアス]: types/alias.md

src/types/cast.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
# Casting
33
-->
4-
# 型キャスティング
4+
# 型キャスト
55

66
<!--
77
Rust provides no implicit type conversion (coercion) between primitive types.
@@ -19,7 +19,7 @@ C言語で未定義の場合の挙動も、Rustでは完全に定義されてい
1919

2020
```rust,editable,ignore,mdbook-runnable
2121
// Suppress all warnings from casts which overflow.
22-
// オーバーフローを起こすようなキャスティングによる警告を無視する
22+
// オーバーフローを起こすようなキャストによる警告を無視する
2323
#![allow(overflowing_literals)]
2424
2525
fn main() {
@@ -46,7 +46,7 @@ fn main() {
4646
// when casting any value to an unsigned type, T,
4747
// T::MAX + 1 is added or subtracted until the value
4848
// fits into the new type
49-
// 何らかの値を符号なしの型(仮にTとする)へキャスティングすると
49+
// 何らかの値を符号なしの型(仮にTとする)へキャストすると
5050
// 値がTに収まるまで、T::MAX + 1 が加算あるいは減算される。
5151
5252
// 1000 already fits in a u16

0 commit comments

Comments
 (0)