Commit 364469e5 authored by Yu-Chun Lin's avatar Yu-Chun Lin Committed by Jonathan Corbet
Browse files

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 dec6c0aa ("lib min_heap: Switch to size_t").

Signed-off-by: default avatarYu-Chun Lin <eleanor15x@gmail.com>
Acked-by: default avatarKuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250215155421.2010336-1-eleanor15x@gmail.com
parent 85df12c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */
    }