Skip to content

Fix typo and inconsistent spelling #212

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 21, 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 @@ -299,7 +299,7 @@ fn main() {
<!-- except `+` or `*`. -->
上のコードはほとんどのマッチャーの構文を利用しています。
この例では0個以上にマッチする `$(...)*` を利用しています、
1つ以上にマッチさせたい場合は `$(...)+` を代りに利用する事ができます
1つ以上にマッチさせたい場合は `$(...)+` を代わりに利用する事ができます
また、どちらも補助的に区切りを指定する事ができます。区切りには、 `+` と `*` 以外の任意のトークンを指定することが可能です。

<!-- This system is based on -->
Expand All @@ -316,7 +316,7 @@ fn main() {
<!-- various problems. For example, this C program prints `13` instead of the -->
<!-- expected `25`. -->
いくつかの言語に組込まれているマクロは単純なテキストの置換を用いています、しかしこれは多くの問題を発生させます。
例えば、以下のC言語のプログラムは期待している `25` の代りに `13` と出力します:
例えば、以下のC言語のプログラムは期待している `25` の代わりに `13` と出力します:

```text
#define FIVE_TIMES(x) 5 * x
Expand Down Expand Up @@ -439,7 +439,7 @@ fn main() {

<!-- Instead you need to pass the variable name into the invocation, so it’s tagged -->
<!-- with the right syntax context. -->
代りに変数名を呼出時に渡す必要があります
代わりに変数名を呼出時に渡す必要があります
呼出時に渡す事で正しい構文コンテキストでタグ付けされます。

```rust
Expand Down
4 changes: 2 additions & 2 deletions 1.6/ja/book/unsized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
例えば、 `i32` 型は、32ビット(4バイト)というサイズです。
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
そのような方を 「サイズ不定」又は「動的サイズ」型と呼びます。
そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
一例を上げると `[T]` 型は 一定のサイズの`T` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。

<!-- Rust understands a few of these types, but they have some restrictions. There -->
Expand Down Expand Up @@ -56,7 +56,7 @@ impl Foo for &str {
<!-- other types of pointers. With the `impl for str`, all pointers, including (at -->
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
<!-- pointers, can use this `impl`. -->
このように書いたとすると、このコードは [参照][ref] に対してのみ動作する用になり、他のポインタ型に対しては動作しないことになります。
このように書いたとすると、このコードは [参照][ref] に対してのみ動作するようになり、他のポインタ型に対しては動作しないことになります。
`imp for str` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それを先ずは直さなくてはなりませんが)もこの `impl` を利用可能になります。

[ref]: references-and-borrowing.html
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 @@ -299,7 +299,7 @@ fn main() {
<!-- except `+` or `*`. -->
上のコードはほとんどのマッチャーの構文を利用しています。
この例では0個以上にマッチする `$(...)*` を利用しています、
1つ以上にマッチさせたい場合は `$(...)+` を代りに利用する事ができます
1つ以上にマッチさせたい場合は `$(...)+` を代わりに利用する事ができます
また、どちらも補助的に区切りを指定する事ができます。区切りには、 `+` と `*` 以外の任意のトークンを指定することが可能です。

<!-- This system is based on -->
Expand All @@ -316,7 +316,7 @@ fn main() {
<!-- various problems. For example, this C program prints `13` instead of the -->
<!-- expected `25`. -->
いくつかの言語に組込まれているマクロは単純なテキストの置換を用いています、しかしこれは多くの問題を発生させます。
例えば、以下のC言語のプログラムは期待している `25` の代りに `13` と出力します:
例えば、以下のC言語のプログラムは期待している `25` の代わりに `13` と出力します:

```text
#define FIVE_TIMES(x) 5 * x
Expand Down Expand Up @@ -439,7 +439,7 @@ fn main() {

<!-- Instead you need to pass the variable name into the invocation, so it’s tagged -->
<!-- with the right syntax context. -->
代りに変数名を呼出時に渡す必要があります
代わりに変数名を呼出時に渡す必要があります
呼出時に渡す事で正しい構文コンテキストでタグ付けされます。

```rust
Expand Down
4 changes: 2 additions & 2 deletions 1.9/ja/book/unsized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
例えば、 `i32` 型は、32ビット(4バイト)というサイズです。
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
そのような方を 「サイズ不定」又は「動的サイズ」型と呼びます。
そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
一例を上げると `[T]` 型は 一定のサイズの`T` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。

<!-- Rust understands a few of these types, but they have some restrictions. There -->
Expand Down Expand Up @@ -56,7 +56,7 @@ impl Foo for &str {
<!-- other types of pointers. With the `impl for str`, all pointers, including (at -->
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
<!-- pointers, can use this `impl`. -->
このように書いたとすると、このコードは [参照][ref] に対してのみ動作する用になり、他のポインタ型に対しては動作しないことになります。
このように書いたとすると、このコードは [参照][ref] に対してのみ動作するようになり、他のポインタ型に対しては動作しないことになります。
`imp for str` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それを先ずは直さなくてはなりませんが)もこの `impl` を利用可能になります。

[ref]: references-and-borrowing.html
Expand Down