Skip to content

Commit 826d3a5

Browse files
authored
Merge pull request huihut#74 from ZzoxAA/master
代码中混入了中文括号
2 parents 3a9e212 + 21a3514 commit 826d3a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ int main()
496496
A a5 = (A)1; // OK:允许 static_cast 的显式转换
497497
doA(1); // OK:允许从 int 到 A 的隐式转换
498498
if (a1); // OK:使用转换函数 A::operator bool() 的从 A 到 bool 的隐式转换
499-
bool a6(a1); // OK:使用转换函数 A::operator bool() 的从 A 到 bool 的隐式转换
499+
bool a6(a1); // OK:使用转换函数 A::operator bool() 的从 A 到 bool 的隐式转换
500500
bool a7 = a1; // OK:使用转换函数 A::operator bool() 的从 A 到 bool 的隐式转换
501501
bool a8 = static_cast<bool>(a1); // OK :static_cast 进行直接初始化
502502

README_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ int main()
500500
A a5 = (A)1; // OK:Allow explicit conversion of static_cast
501501
doA(1); // OK:Allow implicit conversion from int to A
502502
if (a1); // OK: implicit conversion from A to bool using conversion function A ::operator bool()
503-
bool a6(a1); // OK: implicit conversion from A to bool using conversion function A::operator bool()
503+
bool a6(a1); // OK: implicit conversion from A to bool using conversion function A::operator bool()
504504
bool a7 = a1; // OK: implicit conversion from A to bool using conversion function A::operator bool()
505505
bool a8 = static_cast<bool>(a1); // OK: static_cast for direct initialization
506506

0 commit comments

Comments
 (0)