Skip to content

Commit

Permalink
fix(basic_fstream): s/exception/exceptions/
Browse files Browse the repository at this point in the history
  • Loading branch information
yumetodo committed Dec 11, 2019
1 parent a904a13 commit defca21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/fstream/basic_fstream/op_constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int main()
try
{
std::fstream s2("internal.dat", std::ios_base::in | std::ios_base::out | std::ios_base::binary);
s2.exception(std::ios_base::failbit);
s2.exceptions(std::ios_base::failbit);
} catch (const std::exception& e) {
std::cerr << "ファイルを開けませんでした。" << std::endl;
}
Expand Down

0 comments on commit defca21

Please sign in to comment.