We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de1e38 commit e89d3f8Copy full SHA for e89d3f8
1.6/ja/book/deref-coercions.md
@@ -58,7 +58,7 @@ foo(&owned);
58
<!-- `String`, `&owned` is an `&String`, and since `impl Deref<Target=str> for -->
59
<!-- String`, `&String` will deref to `&str`, which `foo()` takes. -->
60
値の前にアンパサンド(&)をつけることによってその値への参照を取得することができます。
61
-故に `owned` は `String` に、 `&owned` は `&String` になります。
+なので、 `owned` は `String` であり、 `&owned` は `&String` であり、
62
そして、 `String` が `Deref<Target=str>` を実装しているために、
63
`&String` は `foo()` が要求している `&str` に型強制されます。
64
0 commit comments