diff options
author | Yu-Chun Lin <eleanor15x@gmail.com> | 2025-02-15 18:54:21 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-02-18 23:30:56 +0300 |
commit | 364469e533b8d0b4ad6b2ae11fc78c1e54d6afae (patch) | |
tree | 90bf27410b704ba2a2843d22d67f51e684534f9b /Documentation/core-api | |
parent | 85df12c59962eb1b7addf00837866954f8e5aafa (diff) | |
download | linux-364469e533b8d0b4ad6b2ae11fc78c1e54d6afae.tar.xz |
Documentation/core-api: min_heap: update for variable types change
Update the documentation to reflect the change in variable types of
'nr' and 'size' from 'int' to 'size_t', ensuring consistency with
commit dec6c0aac4fc ("lib min_heap: Switch to size_t").
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250215155421.2010336-1-eleanor15x@gmail.com
Diffstat (limited to 'Documentation/core-api')
-rw-r--r-- | Documentation/core-api/min_heap.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/core-api/min_heap.rst b/Documentation/core-api/min_heap.rst index 683bc6d09f00..9f57766581df 100644 --- a/Documentation/core-api/min_heap.rst +++ b/Documentation/core-api/min_heap.rst @@ -47,8 +47,8 @@ Example: #define MIN_HEAP_PREALLOCATED(_type, _name, _nr) struct _name { - int nr; /* Number of elements in the heap */ - int size; /* Maximum number of elements that can be held */ + size_t nr; /* Number of elements in the heap */ + size_t size; /* Maximum number of elements that can be held */ _type *data; /* Pointer to the heap data */ _type preallocated[_nr]; /* Static preallocated array */ } |