Skip to content

Commit

Permalink
コード例の一行の長さを短く
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed May 1, 2024
1 parent 8e854b8 commit b9d4a50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reference/future/promise/op_destructor.md
Expand Up @@ -39,7 +39,8 @@ int main()
std::thread t(calc, std::move(p));

try {
std::cout << f.get() << std::endl; // 上で書き込まれた例外が送出される
// 上で書き込まれた例外が送出される
std::cout << f.get() << std::endl;
}
catch (std::future_error& e) {
std::cout << e.what() << std::endl;
Expand Down

0 comments on commit b9d4a50

Please sign in to comment.