Skip to content

Commit 193ab27

Browse files
committed
Translate a paragraph
1 parent e40136f commit 193ab27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/subtyping.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,15 @@ several examples.
149149

150150
これらの変性がなぜ正しくそして望ましいかを理解するために、いくつかの例を考えましょう。
151151

152+
<!--
152153
We have already covered why `&'a T` should be variant over `'a` when
153154
introducing subtyping: it's desirable to be able to pass longer-lived things
154155
where shorter-lived things are needed.
156+
-->
157+
158+
派生型を導入するときに、なぜ `&'a T``'a` において変性であるべきか、既にカバーしました。
159+
これは、短く生きるものが必要なときに、より長く生きるものを渡せるようにするために、
160+
望ましいものなのです。
155161

156162
Similar reasoning applies to why it should be variant over T. It is reasonable
157163
to be able to pass `&&'static str` where an `&&'a str` is expected. The

0 commit comments

Comments
 (0)