Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 9d1fd99

Browse files
committed
Span: Fix documentation.
1 parent bf08651 commit 9d1fd99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

platform/Span.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ class is_convertible
6464
* @par Operations
6565
*
6666
* Span objects can be copied and assigned like regular value types with the help
67-
* of copy constructor and copy assignment (=) operators.
67+
* of the copy constructor or the copy assignment (=) operator.
6868
*
6969
* You can retrieve elements of the object with the subscript ([]) operator. You can access the
7070
* pointer to the first element of the sequence viewed with data().
7171
* The function size() returns the number of elements in the sequence, and
7272
* empty() informs whether there is any element in the sequence.
7373
*
74-
* You can splice Span from the beginning of the sequence (first()), from the end
74+
* You can slice Span from the beginning of the sequence (first()), from the end
7575
* of the sequence (last()) or from an arbitrary point of the sequence (subspan()).
7676
*
7777
* @par Size encoding
@@ -298,7 +298,7 @@ struct Span {
298298
*
299299
* @note For Span with a positive extent, this function is not accessible.
300300
*
301-
* @note OtherElementType(*)[] is convertible to ElementType(*)[].
301+
* @note OtherElementType(*)[] must be convertible to ElementType(*)[].
302302
*/
303303
template<typename OtherElementType>
304304
Span(const Span<OtherElementType, Extent> &other):
@@ -587,7 +587,7 @@ struct Span<ElementType, SPAN_DYNAMIC_EXTENT> {
587587
*
588588
* @note For Span with a positive extent, this function is not accessible.
589589
*
590-
* @note OtherElementType(*)[] is convertible to ElementType(*)[].
590+
* @note OtherElementType(*)[] must be convertible to ElementType(*)[].
591591
*/
592592
template<typename OtherElementType, ptrdiff_t OtherExtent>
593593
Span(const Span<OtherElementType, OtherExtent> &other):

0 commit comments

Comments
 (0)