mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix typo rule C.42
runrime -> runtime
This commit is contained in:
parent
058e1bfb41
commit
0776c58847
|
@ -3513,7 +3513,7 @@ The idiom of having constructors acquire resources and destructors release them
|
||||||
X2(const string& name)
|
X2(const string& name)
|
||||||
:f{fopen(name.c_str(),"r"}
|
:f{fopen(name.c_str(),"r"}
|
||||||
{
|
{
|
||||||
if (f==nullptr) throw runrime_error{"could not open" + name};
|
if (f==nullptr) throw runtime_error{"could not open" + name};
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user