Skip to content

Commit c4fe9f0

Browse files
committed
Cosmetics on the translation of Operators and Overloading (1.9)
1 parent e08b282 commit c4fe9f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

1.9/ja/book/operators-and-overloading.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Rustは制限された形式での演算子オーバーロードを提供して
99
型同士の間の演算子をサポートするためのトレイトが存在し、それらを実装することで演算子をオーバーロードできます。
1010

1111
<!-- For example, the `+` operator can be overloaded with the `Add` trait: -->
12-
例えば`+` の演算子は `Add` トレイトを利用することでオーバーロードできます:
12+
たとえば`+` の演算子は `Add` トレイトでオーバーロードできます:
1313

1414
```rust
1515
use std::ops::Add;
@@ -54,7 +54,7 @@ fn main() {
5454

5555
<!-- Implementing these traits follows a pattern. Let’s look at [`Add`][add] in more -->
5656
<!-- detail: -->
57-
それらのトレイトの実装はパターンに従います
57+
それらのトレイトの実装は、ある一つのパターンに従います
5858
[`Add`][add] トレイトを詳しく見ていきましょう:
5959

6060
```rust
@@ -72,8 +72,8 @@ pub trait Add<RHS = Self> {
7272
<!-- There’s three types in total involved here: the type you `impl Add` for, `RHS`, -->
7373
<!-- which defaults to `Self`, and `Output`. For an expression `let z = x + y`, `x` -->
7474
<!-- is the `Self` type, `y` is the RHS, and `z` is the `Self::Output` type. -->
75-
関連する3つの型が存在します: `impl Add` を実装するもの、 デフォルトが `Self``RHS`、 そして `Output`
76-
例えば、式 `let z = x + y` においては `x``Self``y` は RHS、 `z``Self::Output` 型となります。
75+
関連する3つの型が存在します: `impl Add` を実装するもの、 デフォルトが `Self``RHS`、 そして `Output` です
76+
たとえば、式 `let z = x + y` においては `x``Self``y` は RHS、 `z``Self::Output` 型となります。
7777

7878
```rust
7979
# struct Point;
@@ -102,7 +102,7 @@ let x: f64 = p + 2i32;
102102

103103
<!-- Now that we know how operator traits are defined, we can define our `HasArea` -->
104104
<!-- trait and `Square` struct from the [traits chapter][traits] more generically: -->
105-
オペレータトレイトがどのように定義されているかについて学びましたので[トレイトについての章][traits]`HasArea` トレイトと `Square` 構造体をさらに一般的に定義することができます:
105+
オペレータトレイトがどのように定義されているかを学びましたので[トレイトについての章][traits]`HasArea` トレイトと `Square` 構造体をさらに一般的に定義できます:
106106

107107
[traits]: traits.html
108108

@@ -140,7 +140,7 @@ fn main() {
140140
<!-- For `HasArea` and `Square`, we declare a type parameter `T` and replace -->
141141
<!-- `f64` with it. The `impl` needs more involved modifications: -->
142142
`HasArea``Square` について、型パラメータ `T` を宣言し `f64` で置換しました。
143-
`impl` はさらに関連するモディフィケーシを必要とします:
143+
`impl` はさらに関連する修正を必要とします:
144144

145145
```ignore
146146
impl<T> HasArea<T> for Square<T>

0 commit comments

Comments
 (0)