From b34fcd3c5802d175a7fea6ba8614283ef0b0be6a Mon Sep 17 00:00:00 2001 From: Salmon Date: Sat, 22 Mar 2025 00:58:15 +0800 Subject: [PATCH] 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 --- queue.h | 8 ++++---- scripts/checksums | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/queue.h b/queue.h index a31974eab..323b3b700 100644 --- a/queue.h +++ b/queue.h @@ -182,7 +182,7 @@ void q_reverse(struct list_head *head); * @k: is a positive integer and is less than or equal to the length of the * linked list. * - * No effect if queue is NULL or empty. If there has only one element, do + * No effect if queue is NULL or empty. If there is only one element, do * nothing. * * Reference: @@ -195,7 +195,7 @@ void q_reverseK(struct list_head *head, int k); * @head: header of queue * @descend: whether or not to sort in descending order * - * No effect if queue is NULL or empty. If there has only one element, do + * No effect if queue is NULL or empty. If there is only one element, do * nothing. */ void q_sort(struct list_head *head, bool descend); @@ -205,7 +205,7 @@ void q_sort(struct list_head *head, bool descend); * value anywhere to the right side of it. * @head: header of queue * - * No effect if queue is NULL or empty. If there has only one element, do + * No effect if queue is NULL or empty. If there is only one element, do * nothing. * * Reference: @@ -220,7 +220,7 @@ int q_ascend(struct list_head *head); * value anywhere to the right side of it. * @head: header of queue * - * No effect if queue is NULL or empty. If there has only one element, do + * No effect if queue is NULL or empty. If there is only one element, do * nothing. * * Reference: diff --git a/scripts/checksums b/scripts/checksums index 2d68e1898..7f9d8f544 100644 --- a/scripts/checksums +++ b/scripts/checksums @@ -1,3 +1,3 @@ -bff0704601c8197ae6b847647b4167664b7d6abc queue.h +25e7d2797e09bfafa0c0dee70111104648faec9d queue.h b26e079496803ebe318174bda5850d2cce1fd0c1 list.h 1029c2784b4cae3909190c64f53a06cba12ea38e scripts/check-commitlog.sh