Skip to content

Fix duplicate word and typo #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 1.6/ja/book/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ Rustのコードに展開されていないマクロが含まれていても、
<!-- expression / statement. Rust uses a simple rule to resolve this ambiguity. A -->
<!-- macro invocation that stands for items must be either -->
ブロック中でのマクロ呼出は、幾つかのアイテムや、一つの式 / 文 に対応します。
Rustはこの曖昧性を判定するためにRustは単純なルールを利用します
Rustはこの曖昧性を判定するために単純なルールを利用します
アイテムに対応しているマクロ呼出は以下のどちらかでなければなりません

<!-- * delimited by curly braces, e.g. `foo! { ... }`, or -->
Expand Down Expand Up @@ -650,7 +650,7 @@ Rustはこの曖昧性を判定するためにRustは単純なルールを利用
<!-- be forced to choose between parsing `$t` and parsing `$e`. Changing the -->
<!-- invocation syntax to put a distinctive token in front can solve the problem. In -->
<!-- this case, you can write `$(T $t:ty)* E $e:exp`. -->
マクロシステムはパースの曖昧さについてな何も対処しません
マクロシステムはパースの曖昧さについては何も対処しません
例えば、 `$($t:ty)* $e:expr` は常にパースが失敗します、
なぜならパーサーは `$t` をパースするか、 `$e` をパースするかを選ぶことを強制されるためです。
呼出構文を変更して識別可能なトークンを先頭につけることでこの問題は回避することができます。
Expand Down Expand Up @@ -691,7 +691,7 @@ Rustはこの曖昧性を判定するためにRustは単純なルールを利用

<!-- The `macro_use` attribute can also appear on `extern crate`. In this context -->
<!-- it controls which macros are loaded from the external crate, e.g. -->
また、 `macro_use` アトリビュートは `extern create` の上でも利用することができます。
また、 `macro_use` アトリビュートは `extern crate` の上でも利用することができます。
そのようにした場合、 `macro_use` アトリビュートは外部のクレートからどのマクロをロードするのかを指定します。
以下がその例です:

Expand Down
2 changes: 1 addition & 1 deletion 1.6/ja/book/raw-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ your library, while exposing a safe interface for your users. For example, `*`
pointers are allowed to alias, allowing them to be used to write
shared-ownership types, and even thread-safe shared memory types (the `Rc<T>`
and `Arc<T>` types are both implemented entirely in Rust). -->
`*const T` と `*mut T` はRustにおいて「生ポインタ」と呼ばれます。時々、ある種ののライブラリを書く際に、あなたは何らかの理由でRustが行う安全性の保証を避けなければならないこともあります。このようなケースでは、ユーザに安全なインターフェースを提供しつつ、ライブラリの実装に生ポインタを使用できます。例えば、 `*` ポインタはエイリアスとして振る舞うこともできるので、所有権を共有する型を書くのに用いたり、スレッドセーフな共有メモリ型でさえも実装できます。( `Rc<T>` と `Arc<T>` 型は完全にRustのみで実装されています)
`*const T` と `*mut T` はRustにおいて「生ポインタ」と呼ばれます。時々、ある種のライブラリを書く際に、あなたは何らかの理由でRustが行う安全性の保証を避けなければならないこともあります。このようなケースでは、ユーザに安全なインターフェースを提供しつつ、ライブラリの実装に生ポインタを使用できます。例えば、 `*` ポインタはエイリアスとして振る舞うこともできるので、所有権を共有する型を書くのに用いたり、スレッドセーフな共有メモリ型でさえも実装できます。( `Rc<T>` と `Arc<T>` 型は完全にRustのみで実装されています)

<!-- Here are some things to remember about raw pointers that are different than
other pointer types. They: -->
Expand Down
6 changes: 3 additions & 3 deletions 1.9/ja/book/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ Rustのコードに展開されていないマクロが含まれていても、
<!-- expression / statement. Rust uses a simple rule to resolve this ambiguity. A -->
<!-- macro invocation that stands for items must be either -->
ブロック中でのマクロ呼出は、幾つかのアイテムや、一つの式 / 文 に対応します。
Rustはこの曖昧性を判定するためにRustは単純なルールを利用します
Rustはこの曖昧性を判定するために単純なルールを利用します
アイテムに対応しているマクロ呼出は以下のどちらかでなければなりません

<!-- * delimited by curly braces, e.g. `foo! { ... }`, or -->
Expand Down Expand Up @@ -650,7 +650,7 @@ Rustはこの曖昧性を判定するためにRustは単純なルールを利用
<!-- be forced to choose between parsing `$t` and parsing `$e`. Changing the -->
<!-- invocation syntax to put a distinctive token in front can solve the problem. In -->
<!-- this case, you can write `$(T $t:ty)* E $e:exp`. -->
マクロシステムはパースの曖昧さについてな何も対処しません
マクロシステムはパースの曖昧さについては何も対処しません
例えば、 `$($t:ty)* $e:expr` は常にパースが失敗します、
なぜならパーサーは `$t` をパースするか、 `$e` をパースするかを選ぶことを強制されるためです。
呼出構文を変更して識別可能なトークンを先頭につけることでこの問題は回避することができます。
Expand Down Expand Up @@ -691,7 +691,7 @@ Rustはこの曖昧性を判定するためにRustは単純なルールを利用

<!-- The `macro_use` attribute can also appear on `extern crate`. In this context -->
<!-- it controls which macros are loaded from the external crate, e.g. -->
また、 `macro_use` アトリビュートは `extern create` の上でも利用することができます。
また、 `macro_use` アトリビュートは `extern crate` の上でも利用することができます。
そのようにした場合、 `macro_use` アトリビュートは外部のクレートからどのマクロをロードするのかを指定します。
以下がその例です:

Expand Down
2 changes: 1 addition & 1 deletion 1.9/ja/book/raw-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ your library, while exposing a safe interface for your users. For example, `*`
pointers are allowed to alias, allowing them to be used to write
shared-ownership types, and even thread-safe shared memory types (the `Rc<T>`
and `Arc<T>` types are both implemented entirely in Rust). -->
`*const T` と `*mut T` はRustにおいて「生ポインタ」と呼ばれます。時々、ある種ののライブラリを書く際に、あなたは何らかの理由でRustが行う安全性の保証を避けなければならないこともあります。このようなケースでは、ユーザに安全なインターフェースを提供しつつ、ライブラリの実装に生ポインタを使用できます。例えば、 `*` ポインタはエイリアスとして振る舞うこともできるので、所有権を共有する型を書くのに用いたり、スレッドセーフな共有メモリ型でさえも実装できます。( `Rc<T>` と `Arc<T>` 型は完全にRustのみで実装されています)
`*const T` と `*mut T` はRustにおいて「生ポインタ」と呼ばれます。時々、ある種のライブラリを書く際に、あなたは何らかの理由でRustが行う安全性の保証を避けなければならないこともあります。このようなケースでは、ユーザに安全なインターフェースを提供しつつ、ライブラリの実装に生ポインタを使用できます。例えば、 `*` ポインタはエイリアスとして振る舞うこともできるので、所有権を共有する型を書くのに用いたり、スレッドセーフな共有メモリ型でさえも実装できます。( `Rc<T>` と `Arc<T>` 型は完全にRustのみで実装されています)

<!-- Here are some things to remember about raw pointers that are different than
other pointer types. They: -->
Expand Down