Skip to content

Commit d82f165

Browse files
authored
Merge pull request #35 from TonalidadeHidrica/second-edition-ja
Fix #32: ライフタイムに関する訳を訂正
2 parents cd5ec37 + d714f10 commit d82f165

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

second-edition/src/ch10-03-lifetime-syntax.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,9 +847,9 @@ fn first_word<'a>(s: &'a str) -> &'a str {
847847
<!-- specify how the references relate to each other. -->
848848

849849
省略規則は、完全な推論を提供しません。コンパイラが決定的に規則を適用できるけれども、
850-
参照が保持するライフタイムに関してそれでも曖昧性があるなら、コンパイラは、残りの参照がなるべきライフタイムを推論しません
851-
この場合、推論ではなく、コンパイラは、参照がお互いにどう関係するかを指定するライフタイム注釈を追記することで、
852-
解決できるエラーを与えます
850+
参照が保持するライフタイムに関してそれでも曖昧性があるなら、コンパイラは、残りの参照がなるべきライフタイムを推測しません
851+
この場合コンパイラは、それらを推測するのではなくエラーを与えます。
852+
これらは、参照がお互いにどう関係するかを指定するライフタイム注釈を追記することで解決できます
853853

854854
<!-- Lifetimes on function or method parameters are called *input lifetimes*, and -->
855855
<!-- lifetimes on return values are called *output lifetimes*. -->

0 commit comments

Comments
 (0)