File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -956,16 +956,6 @@ allows the use of the `?` operator on `Result` values</span>
956956
957957<span class =" caption " >リスト9-12: ` Result<(), E> ` を返すように` main ` を変更することで、` Result ` 値に対する` ? ` 演算子が使用可能になる</span >
958958
959- <!--
960- In functions that don’t return `Result`, when
961- you call other functions that return `Result`, you’ll need to use a `match` or
962- one of the `Result` methods to handle the `Result` instead of using the `?`
963- operator to potentially propagate the error to the calling code.
964- -->
965-
966- ` Result ` を返さない関数では、` Result ` を返す別の関数を呼び出した時、
967- ` ? ` 演算子を使用してエラーを呼び出し元に委譲する可能性を生み出す代わりに、` match ` か` Result ` のメソッドのどれかを使う必要があるでしょう。
968-
969959<!--
970960The `Box<dyn Error>` type is a *trait object*, which we’ll talk about in the
971961[“Using Trait Objects that Allow for Values of Different
You can’t perform that action at this time.
0 commit comments