Skip to content

Commit 7c6f107

Browse files
authored
Merge pull request MicrosoftDocs#5072 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main)
2 parents 8f1daa9 + 5bde614 commit 7c6f107

40 files changed

+73
-68
lines changed

docs/c-runtime-library/reference/chdir-wchdir.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
7878
7979
int main( int argc, char *argv[] )
8080
{
81-
8281
if(_chdir( argv[1] ) )
8382
{
8483
switch (errno)

docs/c-runtime-library/reference/chmod-wchmod.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ void set_mode_and_report(char * filename, int mask)
114114
115115
int main( void )
116116
{
117-
118117
// Create or append to a file.
119118
system( "echo /* End of file */ >> crt_chmod.c_input" );
120119

docs/c-runtime-library/reference/cputs-cputws.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ void wprint_to_console(wchar_t* wbuffer)
106106

107107
int main()
108108
{
109-
110109
// String to print at console.
111110
// Notice the \r (return) character.
112111
char* buffer = "Hello world (courtesy of _cputs)!\r\n";

docs/c-runtime-library/reference/pipe.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ enum PIPES { READ, WRITE }; /* Constants 0 and 1 for READ and WRITE */
105105

106106
int main( int argc, char *argv[] )
107107
{
108-
109108
int fdpipe[2];
110109
char hstr[20];
111110
int pid, problem, c;

docs/code-quality/c6014.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const int TEST_DATA [ARRAYSIZE] = {10,20,30,40,50,60,70,80,90,100};
9797

9898
void f( )
9999
{
100-
101100
unique_ptr<int[]> p(new int[ARRAYSIZE]);
102101
std::copy(begin(TEST_DATA), end(TEST_DATA), p.get());
103102

docs/cpp/class-templates.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ using namespace std;
8383

8484
class X
8585
{
86-
8786
template <class T>
8887
struct Y
8988
{

docs/cpp/codesnippet/CPP/how-to-create-and-use-ccomptr-and-ccomqiptr-instances_1.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
void CComPtrDemo()
22
{
3-
43
HRESULT hr = CoInitialize(NULL);
54

65
// Declare the smart pointer.

docs/cpp/codesnippet/CPP/how-to-create-and-use-ccomptr-and-ccomqiptr-instances_3.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
void COMAutomationSmartPointerDemo()
22
{
3-
43
CComPtr<IDispatch> pWord;
54
CComQIPtr<IDispatch, &IID_IDispatch> pqi = pWord;
65
CComDispatchDriver pDriver = pqi;

docs/cpp/examples-of-lambda-expressions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Because a lambda expression is typed, you can assign it to an **`auto`** variabl
2323

2424
int main()
2525
{
26-
2726
using namespace std;
2827

2928
// Assign the lambda expression that adds two numbers to an auto variable.

docs/cpp/function-overloading.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ using namespace std;
401401

402402
class C
403403
{
404-
405404
public:
406405
C() {/*expensive initialization*/}
407406
vector<unsigned> get_data() &

0 commit comments

Comments
 (0)