Skip to content

Commit 10544f3

Browse files
author
Colin Robertson
committed
Bulk fix syntax codeblock tags
1 parent 7c23878 commit 10544f3

28 files changed

+43
-67
lines changed

docs/standard-library/bitset-class.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ The member function throws an [out_of_range](../standard-library/out-of-range-cl
14801480
14811481
Converts a bitset object to a string representation.
14821482
1483-
```
1483+
```cpp
14841484
template <class charT = char, class traits = char_traits<charT>, class Allocator = allocator<charT> >
14851485
basic_string<charT, traits, Allocator> to_string(charT zero = charT('0'), charT one = charT('1')) const;
14861486
```
@@ -1509,7 +1509,7 @@ int main( )
15091509
<< b1 << " )" << endl;
15101510

15111511
string s1;
1512-
s1 = b1.template to_string<char,
1512+
s1 = b1.template to_string<char,
15131513
char_traits<char>, allocator<char> >( );
15141514
cout << "The string returned from the bitset b1"
15151515
<< "\n by the member function to_string( ) is: "
@@ -1528,7 +1528,7 @@ The string returned from the bitset b1
15281528

15291529
Returns an **unsigned long long** value that contains the same bits set as the contents of the bitset object.
15301530

1531-
```
1531+
```cpp
15321532
unsigned long long to_ullong() const;
15331533
```
15341534

@@ -1548,7 +1548,7 @@ Returns the sum of the bit values that are in the bit sequence as an **unsigned
15481548

15491549
Converts a bitset object to the integer that would generate the sequence of bits contained if used to initialize the bitset.
15501550

1551-
```
1551+
```cpp
15521552
unsigned long to_ulong( ) const;
15531553
```
15541554

docs/standard-library/bitset-operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bitset 3: 0001
6363

6464
Inserts a text representation of the bit sequence into the output stream.
6565

66-
```
66+
```cpp
6767
template <class CharType, class Traits, size_t N>
6868
basic_ostream<CharType, Traits>& operator<<(
6969
basic_ostream<CharType, Traits>& ostr,
@@ -120,7 +120,7 @@ int main( )
120120

121121
Reads a string of bit characters into a bitset.
122122

123-
```
123+
```cpp
124124
template <class CharType, class Traits, size_t Bits>
125125
basic_istream<CharType, Traits>& operator>> (
126126
basic_istream<CharType, Traits>& i_str,

docs/standard-library/complex-class.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ Explicit specializations of class template complex exist for the three floating-
6161
|[operator/=](#op_div_eq)|Divides a target complex number by a divisor, which may be complex or be the same type as are the real and imaginary parts of the complex number.|
6262
|[operator=](#op_eq)|Assigns a number to a target complex number, where the number assigned may be complex or of the same type as are the real and imaginary parts of the complex number to which it is being assigned.|
6363
64-
65-
6664
## <a name="complex"></a> complex
6765
6866
Constructs a complex number with specified real and imaginary parts or as a copy of some other complex number.
@@ -101,7 +99,7 @@ complex(const complex<Other>& right);
10199

102100
is replaced with:
103101

104-
```
102+
```cpp
105103
complex(const complex& right);
106104
```
107105

@@ -737,7 +735,7 @@ The imaginary part of c1 is c1.imag() = 3.
737735

738736
A type that represents the data type used to represent the real and imaginary parts of a complex number.
739737

740-
```
738+
```cpp
741739
typedef Type value_type;
742740
```
743741

docs/standard-library/complex-operators.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["std::operator!= (complex)", "std::operator&gt;&gt; (compl
1111

1212
Tests for inequality between two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.
1313

14-
```
14+
```cpp
1515
template <class Type>
1616
bool operator!=(
1717
const complex<Type>& left,
@@ -150,8 +150,7 @@ The complex numbers cl3b & cr3b are equal.
150150

151151
Multiplies two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.
152152

153-
```
154-
153+
```cpp
155154
template <class Type>
156155
complex<Type> operator*(
157156
const complex<Type>& left,
@@ -248,8 +247,7 @@ int main( )
248247
249248
Adds two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.
250249
251-
```
252-
250+
```cpp
253251
template <class Type>
254252
complex<Type> operator+(
255253
const complex<Type>& left,
@@ -713,8 +711,7 @@ The argument of c2 is: 0.523599 radians, which is 30 degrees.
713711

714712
Tests for equality between two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.
715713

716-
```
717-
714+
```cpp
718715
template <class Type>
719716
bool operator==(
720717
const complex<Type>& left,
@@ -853,8 +850,7 @@ The complex numbers cl3b & cr3b are equal.
853850

854851
Extracts a complex value from the input stream.
855852

856-
```
857-
853+
```cpp
858854
template <class Type, class Elem, class Traits>
859855
basic_istream<Elem, Traits>& operator>>(
860856
basic_istream<Elem, Traits>& Istr,

docs/standard-library/container-class-begin.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ Returns an iterator that points at the first element of the sequence (or just be
1313

1414
## Syntax
1515

16-
```
17-
18-
const_iterator begin() const;
16+
```cpp
17+
const_iterator begin() const;
1918

2019
iterator begin();
2120
```

docs/standard-library/container-class-clear.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Calls [erase](../standard-library/container-class-erase.md)([begin](../standard-
1313

1414
## Syntax
1515

16-
```
17-
16+
```cpp
1817
void clear();
1918
```
2019

docs/standard-library/container-class-const-iterator.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Describes an object that can serve as a constant iterator for the controlled seq
1313

1414
## Syntax
1515

16-
```
17-
16+
```cpp
1817
typedef T6 const_iterator;
1918
```
2019

docs/standard-library/container-class-const-reference.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Describes an object that can serve as a constant reference to an element of the
1313

1414
## Syntax
1515

16-
```
17-
16+
```cpp
1817
typedef T3 const_reference;
1918
```
2019

docs/standard-library/container-class-const-reverse-iterator.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Describes an object that can serve as a constant reverse iterator for the contro
1313

1414
## Syntax
1515

16-
```
17-
16+
```cpp
1817
typedef T8 const_reverse_iterator;
1918
```
2019

docs/standard-library/container-class-difference-type.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Describes an object that can represent the difference between the addresses of a
1313

1414
## Syntax
1515

16-
```
17-
16+
```cpp
1817
typedef T1 difference_type;
1918
```
2019

0 commit comments

Comments
 (0)