Span: Fix typo.

pull/7828/head
Vincent Coubard 2018-08-20 10:41:47 +01:00
parent 3fb3173876
commit 9b9d33a7b4
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ namespace mbed {
template<typename T, ptrdiff_t Size = SPAN_DYNAMIC_EXTENT>
struct Span {
MBED_STATIC_ASSERT(Size >= 0, "Invalid size for an ArrayView");
MBED_STATIC_ASSERT(Size >= 0, "Invalid size for a Span");
/**
* Construct a view to an empty array.
@ -74,7 +74,7 @@ struct Span {
* @param array_size Number of elements of T present in the array.
*
* @post a call to size() will return array_size and data() will return
* array_tpr.
* @p array_ptr.
*/
Span(T* array_ptr, size_t array_size) :
_array(array_ptr) {
@ -236,7 +236,7 @@ struct Span<T, SPAN_DYNAMIC_EXTENT> {
* @param array_size Number of elements of T present in the array.
*
* @post a call to size() will return array_size and data() will return
* array_tpr.
* @p array_ptr.
*/
Span(T* array_ptr, size_t array_size) :
_array(array_ptr), _size(array_size) { }