Skip to content

Commit 3ce1c94

Browse files
authored
Remove superfluous semicolons after function definition
1 parent 05bdb64 commit 3ce1c94

26 files changed

+50
-50
lines changed

docs/cpp/function-overloading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public:
307307

308308
void Print( int i )
309309
{
310-
};
310+
}
311311

312312
UDC udc;
313313

docs/cpp/overload-resolution-of-function-template-calls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ template <class T1, class T2>
2626
void f(T1, T2)
2727
{
2828
cout << "void f(T1, T2)" << endl;
29-
};
29+
}
3030

3131
int main()
3232
{
@@ -58,7 +58,7 @@ template <class T1, class T2>
5858
void f(T1, T2)
5959
{
6060
cout << "void f(T1, T2)" << endl;
61-
};
61+
}
6262

6363
int main()
6464
{

docs/dotnet/how-to-access-characters-in-a-system-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ size_t getlen(System::String ^ s) {
5353
// make sure it doesn't move during the unmanaged call
5454
pin_ptr<const wchar_t> pinchars = PtrToStringChars(s);
5555
return wcsnlen(pinchars, maxsize);
56-
};
56+
}
5757

5858
int main() {
5959
System::Console::WriteLine(getlen("testing"));

docs/dotnet/how-to-define-and-use-delegates-cpp-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ int main() {
442442
Del^ d = gcnew Del(r1, &R::f);
443443
d += gcnew Del(&R::f);
444444
d(r2);
445-
};
445+
}
446446
```
447447
448448
**Output**

docs/error-messages/compiler-errors-1/compiler-error-c2134.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following sample generates C2134:
1818
// compile with: /c
1919
int A() {
2020
return 42;
21-
};
21+
}
2222

2323
constexpr int B() {
2424
return A(); // Error C2134: 'A': call does not result in a constant expression.
@@ -31,7 +31,7 @@ Possible resolution:
3131
// C2134b.cpp
3232
constexpr int A() { // add constexpr to A, since it meets the requirements of constexpr.
3333
return 42;
34-
};
34+
}
3535

3636
constexpr int B() {
3737
return A(); // No error

docs/error-messages/compiler-errors-2/compiler-error-c2835.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public:
2222

2323
A() {
2424
v_char = 'A';
25-
};
25+
}
2626
operator char(char a) { // C2835
2727
// try the following line instead
2828
// operator char() {
2929
return v_char + 1;
30-
};
30+
}
3131
};
3232

3333
int main() {

docs/error-messages/compiler-errors-2/compiler-error-c3185.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ int main() {
2525
Base ^pb = pd;
2626
const type_info & t1 = typeid(pb); // C3185
2727
System::Type ^ MyType = Base::typeid; // OK
28-
};
28+
}
2929
```

docs/error-messages/compiler-errors-2/compiler-error-c3536.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
auto* d = &d; //C3536
3232
auto& e = e; //C3536
3333
return 0;
34-
};
34+
}
3535
```
3636

3737
## See also

docs/error-messages/compiler-errors-2/compiler-error-c3672.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ template<typename T>
2222
void f(T* pT) {
2323
&pT->T::~T; // C3672
2424
pT->T::~T(); // OK
25-
};
25+
}
2626

2727
int main() {
2828
int i;

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4269.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public:
2424

2525
void g() {
2626
const X x1; // C4269
27-
};
27+
}
2828
```
2929
3030
Since this instance of the class is generated on the stack, the initial value of `m_data` can be anything. Also, since it is a **`const`** instance, the value of `m_data` can never be changed.

0 commit comments

Comments
 (0)