Skip to content

Commit 54d2ee8

Browse files
authored
Merge pull request #4408 from strega-nil-ms/fix-printf-r
remove `\r` from printf statements
2 parents b76733e + 5d3f1f5 commit 54d2ee8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/cpp/structured-exception-handling-c-cpp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ class TestClass
6767
public:
6868
~TestClass()
6969
{
70-
printf("Destroying TestClass!\r\n");
70+
printf("Destroying TestClass!\n");
7171
}
7272
};
7373

7474
__declspec(noinline) void TestCPPEX()
7575
{
7676
#ifdef CPPEX
77-
printf("Throwing C++ exception\r\n");
77+
printf("Throwing C++ exception\n");
7878
throw std::exception("");
7979
#else
80-
printf("Triggering SEH exception\r\n");
80+
printf("Triggering SEH exception\n");
8181
volatile int *pInt = 0x00000000;
8282
*pInt = 20;
8383
#endif
@@ -97,7 +97,7 @@ int main()
9797
}
9898
__except(EXCEPTION_EXECUTE_HANDLER)
9999
{
100-
printf("Executing SEH __except block\r\n");
100+
printf("Executing SEH __except block\n");
101101
}
102102

103103
return 0;

0 commit comments

Comments
 (0)