Skip to content

Commit

Permalink
Fix typo (sysprog21#171)
Browse files Browse the repository at this point in the history
"qcontext_t" in the description of q_merge should be queue_contex_t.
  • Loading branch information
backink authored and jserv committed Mar 10, 2024
1 parent b1fbeb7 commit 6c80a7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ int q_descend(struct list_head *head);
* This function merge the second to the last queues in the chain into the first
* queue. The queues are guaranteed to be sorted before this function is called.
* No effect if there is only one queue in the chain. Allocation is disallowed
* in this function. There is no need to free the 'qcontext_t' and its member
* 'q' since they will be released externally. However, q_merge() is responsible
* for making the queues to be NULL-queue, except the first one.
* in this function. There is no need to free the 'queue_contex_t' and its
* member 'q' since they will be released externally. However, q_merge() is
* responsible for making the queues to be NULL-queue, except the first one.
*
* Reference:
* https://leetcode.com/problems/merge-k-sorted-lists/
Expand Down
2 changes: 1 addition & 1 deletion scripts/checksums
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
fc83d2142cdebd29bf8dbf01d2c21c59f8c6a7ce queue.h
444bab14cb8ad4c949f61b3c10a22a3ed2401425 queue.h
3337dbccc33eceedda78e36cc118d5a374838ec7 list.h

0 comments on commit 6c80a7d

Please sign in to comment.