Skip to content

Commit a5f1229

Browse files
Tyler WhitneyTyler Whitney
authored andcommitted
mark code headings as code so they don't get localized
1 parent 703ef6d commit a5f1229

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

docs/standard-library/span-class.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Unlike array or vector, a span doesn't "own” the elements inside it. A span do
8080
8181
**Namespace:** std
8282
83-
## <a name="back"></a> span::back
83+
## <a name="back"></a> `span::back`
8484
8585
Returns the last element in the span.
8686
@@ -111,7 +111,7 @@ void main()
111111
2
112112
```
113113

114-
## <a name="begin"></a> span::begin
114+
## <a name="begin"></a> `span::begin`
115115

116116
Returns an iterator pointing at the first element in the span.
117117

@@ -143,7 +143,7 @@ void main()
143143
0
144144
```
145145

146-
## <a name="data"></a> span::data
146+
## <a name="data"></a> `span::data`
147147

148148
Returns a pointer to the beginning of the span data.
149149

@@ -175,7 +175,7 @@ void main()
175175
```
176176

177177
[difference_type](#difference_type)
178-
## <a name="difference_type"></a> span::difference_type
178+
## <a name="difference_type"></a> `span::difference_type`
179179

180180
This type represents the number of elements between two elements in a span.
181181

@@ -203,7 +203,7 @@ void main()
203203
2
204204
```
205205

206-
## <a name="element_type"></a> span::element_type
206+
## <a name="element_type"></a> `span::element_type`
207207

208208
The type of the elements in the span.
209209

@@ -236,7 +236,7 @@ void main()
236236
2
237237
```
238238

239-
## <a name="empty"></a> span::empty
239+
## <a name="empty"></a> `span::empty`
240240

241241
Whether the span contains elements.
242242

@@ -262,7 +262,7 @@ void main()
262262
}
263263
```
264264

265-
## <a name="end"></a> span::end
265+
## <a name="end"></a> `span::end`
266266

267267
Returns an iterator to the end of the span.
268268

@@ -290,7 +290,7 @@ for (auto it = s1.begin(); it != s1.end(); ++it)
290290
}
291291
```
292292

293-
## <a name="first_view"></a> span::first
293+
## <a name="first_view"></a> `span::first`
294294

295295
Get a subspan, taken from the front of this span.
296296

@@ -345,7 +345,7 @@ mySpan.first(2): 01
345345
mySpan.first<2>: 01
346346
```
347347

348-
## <a name="front"></a> span::front
348+
## <a name="front"></a> `span::front`
349349

350350
Returns the first element in the span.
351351

@@ -377,7 +377,7 @@ void main()
377377
0
378378
```
379379

380-
## <a name="iterator"></a> span::iterator
380+
## <a name="iterator"></a> `span::iterator`
381381

382382
The type of an iterator over span elements.
383383

@@ -409,7 +409,7 @@ void main()
409409
012
410410
```
411411

412-
## <a name="last_view"></a> span::last
412+
## <a name="last_view"></a> `span::last`
413413

414414
Get a subspan, taken from the end of this span.
415415

@@ -464,7 +464,7 @@ mySpan.last(2): 12
464464
mySpan.last<2>: 12
465465
```
466466

467-
## <a name="op_at"></a> span::operator[]
467+
## <a name="op_at"></a> `span::operator[]`
468468

469469
Access an element in the span at a specified position.
470470

@@ -500,7 +500,7 @@ void main()
500500
1
501501
```
502502

503-
## <a name="op_eq"></a> span::operator=
503+
## <a name="op_eq"></a> `span::operator=`
504504

505505
Assign another span to this one.
506506

@@ -543,7 +543,7 @@ void main()
543543
012
544544
```
545545

546-
## <a name="pointer"></a> span::pointer
546+
## <a name="pointer"></a> `span::pointer`
547547

548548
The types for a pointer and `const` pointer to a span element.
549549

@@ -579,7 +579,7 @@ void main()
579579
90
580580
```
581581

582-
## <a name="rbegin"></a> span::rbegin
582+
## <a name="rbegin"></a> `span::rbegin`
583583

584584
Get a reverse iterator pointing to the last element of this span.
585585

@@ -613,7 +613,7 @@ void main()
613613
210
614614
```
615615

616-
## <a name="reference"></a> span::reference
616+
## <a name="reference"></a> `span::reference`
617617

618618
The types for a reference, and a `const` reference, to a span element.
619619

@@ -648,7 +648,7 @@ void main()
648648
91
649649
```
650650

651-
## <a name="rend"></a> span::rend
651+
## <a name="rend"></a> `span::rend`
652652

653653
Get a random-access iterator to the sentinel just beyond the end of the reversed span.
654654

@@ -684,7 +684,7 @@ void main()
684684
}
685685
```
686686

687-
## <a name="reverse_iterator"></a> span::reverse_iterator
687+
## <a name="reverse_iterator"></a> `span::reverse_iterator`
688688

689689
The type of a reverse iterator for a span.
690690

@@ -712,7 +712,7 @@ void main()
712712
210
713713
```
714714

715-
## <a name="size"></a> span::size
715+
## <a name="size"></a> `span::size`
716716

717717
Get the number of elements in the span.
718718

@@ -742,7 +742,7 @@ void main()
742742
3
743743
```
744744

745-
## <a name="size_bytes"></a> span::size_bytes
745+
## <a name="size_bytes"></a> `span::size_bytes`
746746

747747
Get the size of the elements in the span in bytes.
748748

@@ -772,7 +772,7 @@ void main()
772772
12
773773
```
774774

775-
## <a name="size_type"></a> span::size_type
775+
## <a name="size_type"></a> `span::size_type`
776776

777777
The size of the type of an element in the span.
778778

@@ -800,7 +800,7 @@ void main()
800800
4
801801
```
802802

803-
## <a name="span"></a> span::span
803+
## <a name="span"></a> `span::span`
804804

805805
`span` constructors.
806806

@@ -904,7 +904,7 @@ void main()
904904
}
905905
```
906906

907-
## <a name="sub_view"></a> span::subspan
907+
## <a name="sub_view"></a> `span::subspan`
908908

909909
Gets a subspan from this span.
910910

@@ -972,7 +972,7 @@ mySpan.subspan<1,2>: 12
972972
mySpan.subspan<1>: 12
973973
```
974974

975-
## <a name="value_type"></a> span::value_type
975+
## <a name="value_type"></a> `span::value_type`
976976

977977
The type of the element in the span but without any `const` or `volatile` qualifications.
978978

docs/standard-library/span-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The \<span> header includes the following non-member functions that operate on *
1313
|[as_bytes](#as_bytes) | Get a read-only view of the object representation of the elements in the span. |
1414
|[as_writeable_bytes](#as_writable_bytes) | Get a read/write view to the object representation of the elements in the span. |
1515

16-
## <a name="as_bytes"></a>as_bytes
16+
## <a name="as_bytes"></a>`as_bytes`
1717

1818
Get a read-only view of the object representation of the elements in the span.
1919

@@ -51,7 +51,7 @@ void main()
5151
}
5252
```
5353

54-
## <a name="as_writable_bytes"></a>as_writable_bytes
54+
## <a name="as_writable_bytes"></a>`as_writable_bytes`
5555

5656
If `T` isn't `const`, gets a read/write view to the raw byte representation of the elements in the span.
5757

0 commit comments

Comments
 (0)