Skip to content

Commit ee02174

Browse files
committed
Translate paragraphs
1 parent 028afb3 commit ee02174

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/subtyping.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,23 @@ function signature:
360360
fn foo(usize) -> &'a str;
361361
```
362362

363+
<!--
363364
This signature claims that it will return something that outlives `'a`. It is
364365
therefore completely reasonable to provide
366+
-->
367+
368+
このシグネチャは、関数が `'a` より長生きする何かを返すと主張しています。
369+
それゆえに、この場所に
365370

366371
```rust,ignore
367372
fn foo(usize) -> &'static str;
368373
```
369374

375+
<!--
370376
in its place. Therefore functions are variant over their return type.
377+
-->
378+
379+
が置かれても全く問題ありません。ゆえに、関数は、そのリターン型において変性なのです。
371380

372381
`*const` has the exact same semantics as `&`, so variance follows. `*mut` on the
373382
other hand can dereference to an `&mut` whether shared or not, so it is marked

0 commit comments

Comments
 (0)