Skip to content

Commit 0996e18

Browse files
authored
Merge pull request #4341 from TylerMSFT/fixtypo
fix typo
2 parents 3efe3c5 + 078aa51 commit 0996e18

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/standard-library/span-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ helpviewer_keywords: ["std::span [C++]", "std::span [C++], const_pointer", "std:
88
---
99
# `span` class (C++ Standard Library)
1010

11-
Provides a lightweight view over a contiguous sequence of objects. A `span` provides a safe way to iterate over, and index into, objects that are arranged back-to-back in memory such as objects stored in a built-in array, `std::array`, or `std::vector`.
11+
Provides a lightweight view over a contiguous sequence of objects. A `span` provides a safe way to iterate over and index into objects that are arranged back-to-back in memory. Such as objects stored in a built-in array, `std::array`, or `std::vector`.
1212

1313
If you typically access a sequence of back-to-back objects using a pointer and an index, a `span` is a safer, lightweight alternative.
1414

@@ -56,7 +56,7 @@ class span;
5656
|[`back`](#back) | Get the last element in the `span`.|
5757
|[`data`](#data) | Get the address of the first element in the `span`.|
5858
|[`front`](#front) | Get the first element in the `span`.|
59-
|[`operator\[\]`](#op_at) | Access an element at a specified position.|
59+
|[`operator[]`](#op_at) | Access an element at a specified position.|
6060
| **Observers** | **Description** |
6161
|[`empty`](#empty)| Test whether the `span` is empty.|
6262
|[`size`](#size) | Get the number of elements in the `span`.|
@@ -67,7 +67,7 @@ class span;
6767
| [`subspan`](#sub_view) | Get a subspan from anywhere in the `span`.|
6868
| **Operators** | **Description** |
6969
|[`span::operator=`](#op_eq)| Replace the `span`.|
70-
|[`span::operator\[\]`](#op_at)| Get the element at the specified position. |
70+
|[`span::operator[]`](#op_at)| Get the element at the specified position. |
7171
7272
## Remarks
7373

0 commit comments

Comments
 (0)