Skip to content

Commit 2038e72

Browse files
author
Amanda Butler
authored
Copy edit ArrayView.h
Copy edit, mostly for active voice and agreement.
1 parent 3c3592a commit 2038e72

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

features/FEATURE_BLE/ble/ArrayView.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ namespace ble {
3737
* Immutable view to an array.
3838
*
3939
* Array views encapsulate the pointer to an array and its size into a single
40-
* object however it does not manage the lifetime of the array viewed.
41-
* Instances of ArrayView can be used to replace the traditional pair of pointer
40+
* object; however, it does not manage the lifetime of the array viewed.
41+
* You can use instances of ArrayView to replace the traditional pair of pointer
4242
* and size arguments in function calls.
4343
*
44-
* The size member function can be used to query the number of elements present
45-
* in the array and overloads of the subscript operator allow code using
44+
* You can use the size member function to query the number of elements present
45+
* in the array, and overloads of the subscript operator allow code using
4646
* this object to access to the content of the array viewed.
4747
*
48-
* @note ArrayView instances can be created easily with the help of the function
48+
* @note You can create ArrayView instances with the help of the function
4949
* template make_ArrayView() and make_const_ArrayView().
5050
*
5151
* @tparam T type of objects held by the array.
@@ -56,7 +56,7 @@ struct ArrayView {
5656
/**
5757
* Construct a view to an empty array.
5858
*
59-
* @post a call to size() will return 0 and data() will return NULL.
59+
* @post a call to size() will return 0, and data() will return NULL.
6060
*/
6161
ArrayView() : _array(0), _size(0) { }
6262

@@ -79,7 +79,7 @@ struct ArrayView {
7979
*
8080
* @tparam Size Number of elements of T presents in the array.
8181
*
82-
* @post a call to size() will return Size and data() will return
82+
* @post a call to size() will return Size, and data() will return
8383
* a pointer to elements.
8484
*/
8585
template<size_t Size>
@@ -172,7 +172,7 @@ struct ArrayView {
172172
* @param lhs Left hand side of the binary operation.
173173
* @param rhs Right hand side of the binary operation.
174174
*
175-
* @return True if arrays in input does not have the same size or the same
175+
* @return True if arrays in input do not have the same size or the same
176176
* content and false otherwise.
177177
*/
178178
friend bool operator!=(const ArrayView& lhs, const ArrayView& rhs)
@@ -196,7 +196,7 @@ struct ArrayView {
196196
*
197197
* @return The ArrayView to elements.
198198
*
199-
* @note This helper avoid the typing of template parameter when ArrayView are
199+
* @note This helper avoids the typing of template parameter when ArrayView is
200200
* created 'inline'.
201201
*/
202202
template<typename T, size_t Size>
@@ -215,7 +215,7 @@ ArrayView<T> make_ArrayView(T (&elements)[Size])
215215
*
216216
* @return The ArrayView to array_ptr with a size of array_size.
217217
*
218-
* @note This helper avoid the typing of template parameter when ArrayView are
218+
* @note This helper avoids the typing of template parameter when ArrayView is
219219
* created 'inline'.
220220
*/
221221
template<typename T>
@@ -233,7 +233,7 @@ ArrayView<T> make_ArrayView(T* array_ptr, size_t array_size)
233233
* @param elements The array viewed.
234234
* @return The ArrayView to elements.
235235
*
236-
* @note This helper avoid the typing of template parameter when ArrayView are
236+
* @note This helper avoids the typing of template parameter when ArrayView is
237237
* created 'inline'.
238238
*/
239239
template<typename T, size_t Size>
@@ -252,7 +252,7 @@ ArrayView<const T> make_const_ArrayView(T (&elements)[Size])
252252
*
253253
* @return The ArrayView to array_ptr with a size of array_size.
254254
*
255-
* @note This helper avoid the typing of template parameter when ArrayView are
255+
* @note This helper avoids the typing of template parameter when ArrayView is
256256
* created 'inline'.
257257
*/
258258
template<typename T>

0 commit comments

Comments
 (0)