@@ -242,7 +242,7 @@ Rustはこれを何かの値を入れて(interpolate、インターポーレー
242
242
[ format ] : ../std/fmt/index.html
243
243
244
244
<!-- # Scope and shadowing -->
245
- # スコープとシャドイング
245
+ # スコープとシャドーイング
246
246
247
247
<!-- Let’s get back to bindings. Variable bindings have a scope - they are -->
248
248
<!-- constrained to live in a block they were defined in. A block is a collection -->
@@ -298,7 +298,7 @@ To learn more, run the command again with --verbose.
298
298
<!-- Additionally, variable bindings can be shadowed. This means that a later -->
299
299
<!-- variable binding with the same name as another binding, that's currently in -->
300
300
<!-- scope, will override the previous binding. -->
301
- さらに加えて、変数束縛は覆い隠すことが出来ます(訳注: このことをシャドイングと言います )。
301
+ さらに加えて、変数束縛は覆い隠すことが出来ます(訳注: このことをシャドーイングと言います )。
302
302
つまり後に出てくる同じ名前の変数束縛があるとそれがスコープに入り、以前の束縛を上書きするのです。
303
303
304
304
``` rust
@@ -321,8 +321,8 @@ println!("{}", x); // "42"を印字する
321
321
<!-- they are two distinct concepts that can't always be used interchangeably. For -->
322
322
<!-- one, shadowing enables us to rebind a name to a value of a different type. It -->
323
323
<!-- is also possible to change the mutability of a binding. -->
324
- シャドイングとミュータブルな束縛はコインの表と裏のように見えるかもしれませんが 、それぞれ独立な概念であり互いに代用が出来ないケースがあります。
325
- その1つにシャドイングは同じ名前に違う型の値を再束縛することが出来ます 。
324
+ シャドーイングとミュータブルな束縛はコインの表と裏のように見えるかもしれませんが 、それぞれ独立な概念であり互いに代用が出来ないケースがあります。
325
+ その1つにシャドーイングは同じ名前に違う型の値を再束縛することが出来ます 。
326
326
327
327
``` rust
328
328
let mut x : i32 = 1 ;
0 commit comments