Skip to content

Commit b34fcd3

Browse files
committed
Correct grammar in queue.h function descriptions
Fix grammatical errors in queue.h documentation by changing incorrect phrase there has only one element to correct phrase there is only one element in the descriptions for q_sort(), q_ascend(), q_descend(), and q_reverseK() functions. Change-Id: Iaf4f49c5c3081e4d485d2549563345e3eee31d57
1 parent 5223a1d commit b34fcd3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

queue.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void q_reverse(struct list_head *head);
182182
* @k: is a positive integer and is less than or equal to the length of the
183183
* linked list.
184184
*
185-
* No effect if queue is NULL or empty. If there has only one element, do
185+
* No effect if queue is NULL or empty. If there is only one element, do
186186
* nothing.
187187
*
188188
* Reference:
@@ -195,7 +195,7 @@ void q_reverseK(struct list_head *head, int k);
195195
* @head: header of queue
196196
* @descend: whether or not to sort in descending order
197197
*
198-
* No effect if queue is NULL or empty. If there has only one element, do
198+
* No effect if queue is NULL or empty. If there is only one element, do
199199
* nothing.
200200
*/
201201
void q_sort(struct list_head *head, bool descend);
@@ -205,7 +205,7 @@ void q_sort(struct list_head *head, bool descend);
205205
* value anywhere to the right side of it.
206206
* @head: header of queue
207207
*
208-
* No effect if queue is NULL or empty. If there has only one element, do
208+
* No effect if queue is NULL or empty. If there is only one element, do
209209
* nothing.
210210
*
211211
* Reference:
@@ -220,7 +220,7 @@ int q_ascend(struct list_head *head);
220220
* value anywhere to the right side of it.
221221
* @head: header of queue
222222
*
223-
* No effect if queue is NULL or empty. If there has only one element, do
223+
* No effect if queue is NULL or empty. If there is only one element, do
224224
* nothing.
225225
*
226226
* Reference:

scripts/checksums

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
bff0704601c8197ae6b847647b4167664b7d6abc queue.h
1+
25e7d2797e09bfafa0c0dee70111104648faec9d queue.h
22
b26e079496803ebe318174bda5850d2cce1fd0c1 list.h
33
1029c2784b4cae3909190c64f53a06cba12ea38e scripts/check-commitlog.sh

0 commit comments

Comments
 (0)