From: Min-Hsun Chang <chmh0624@gmail.com>
To: visitorckw@gmail.com, corbet@lwn.net
Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
Min-Hsun Chang <chmh0624@gmail.com>
Subject: [PATCH] lib/min_heap: fix spelling and grammatical errors
Date: Mon, 9 Feb 2026 16:52:50 +0800 [thread overview]
Message-ID: <20260209085250.75237-1-chmh0624@gmail.com> (raw)
The Min Heap API documentation and header file contain a few minor
spelling and grammatical mistakes.
Fix the following:
- Add a missing period at the end of a sentence in min_heap.rst.
- Change "customise" to "customize" in min_heap.h for consistency
with the documentation.
- Change "on to" to "onto" in the description of min_heap_push.
These changes improve the readability of the API and documentation.
Signed-off-by: Min-Hsun Chang <chmh0624@gmail.com>
---
Documentation/core-api/min_heap.rst | 2 +-
include/linux/min_heap.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/core-api/min_heap.rst b/Documentation/core-api/min_heap.rst
index 9f57766581df..62439be2cdf6 100644
--- a/Documentation/core-api/min_heap.rst
+++ b/Documentation/core-api/min_heap.rst
@@ -75,7 +75,7 @@ elements in the heap and swapping them. It contains two function pointers:
- **less** is the comparison function used to establish the order of elements.
- **swp** is a function for swapping elements in the heap. If swp is set to
- NULL, the default swap function will be used, which swaps the elements based on their size
+ NULL, the default swap function will be used, which swaps the elements based on their size.
Macro Wrappers
==============
diff --git a/include/linux/min_heap.h b/include/linux/min_heap.h
index 79ddc0adbf2b..cb1cc0c0e8bd 100644
--- a/include/linux/min_heap.h
+++ b/include/linux/min_heap.h
@@ -40,7 +40,7 @@ typedef DEFINE_MIN_HEAP(char, min_heap_char) min_heap_char;
#define __minheap_obj_size(_heap) sizeof((_heap)->data[0])
/**
- * struct min_heap_callbacks - Data/functions to customise the min_heap.
+ * struct min_heap_callbacks - Data/functions to customize the min_heap.
* @less: Partial order function for this heap.
* @swp: Swap elements function.
*/
@@ -373,7 +373,7 @@ void __min_heap_pop_push_inline(min_heap_char *heap, const void *element, size_t
__min_heap_pop_push_inline(container_of(&(_heap)->nr, min_heap_char, nr), _element, \
__minheap_obj_size(_heap), _func, _args)
-/* Push an element on to the heap, O(log2(nr)). */
+/* Push an element onto the heap, O(log2(nr)). */
static __always_inline
bool __min_heap_push_inline(min_heap_char *heap, const void *element, size_t elem_size,
const struct min_heap_callbacks *func, void *args)
--
2.50.1
next reply other threads:[~2026-02-09 8:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 8:52 Min-Hsun Chang [this message]
2026-02-09 14:46 ` [PATCH] lib/min_heap: fix spelling and grammatical errors Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260209085250.75237-1-chmh0624@gmail.com \
--to=chmh0624@gmail.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=visitorckw@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox