Skip to content

Commit 6c80a7d

Browse files
backinkjserv
authored andcommitted
Fix typo (#171)
"qcontext_t" in the description of q_merge should be queue_contex_t.
1 parent b1fbeb7 commit 6c80a7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

queue.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ int q_descend(struct list_head *head);
239239
* This function merge the second to the last queues in the chain into the first
240240
* queue. The queues are guaranteed to be sorted before this function is called.
241241
* No effect if there is only one queue in the chain. Allocation is disallowed
242-
* in this function. There is no need to free the 'qcontext_t' and its member
243-
* 'q' since they will be released externally. However, q_merge() is responsible
244-
* for making the queues to be NULL-queue, except the first one.
242+
* in this function. There is no need to free the 'queue_contex_t' and its
243+
* member 'q' since they will be released externally. However, q_merge() is
244+
* responsible for making the queues to be NULL-queue, except the first one.
245245
*
246246
* Reference:
247247
* https://leetcode.com/problems/merge-k-sorted-lists/

scripts/checksums

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
fc83d2142cdebd29bf8dbf01d2c21c59f8c6a7ce queue.h
1+
444bab14cb8ad4c949f61b3c10a22a3ed2401425 queue.h
22
3337dbccc33eceedda78e36cc118d5a374838ec7 list.h

0 commit comments

Comments
 (0)