From 6ec0b9363345abed02b631c3e5c355859fe6b909 Mon Sep 17 00:00:00 2001 From: lumynou5 Date: Mon, 18 Mar 2024 18:04:21 +0800 Subject: [PATCH 1/2] Fix description of `q_delete_dup` The originally document says `false` is returned when `head` is `NULL`, which is inconsistent with functions like `q_delete_mid` and is confirmed to be a typo. --- queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue.h b/queue.h index 09dd3adfb..89dd99304 100644 --- a/queue.h +++ b/queue.h @@ -151,7 +151,7 @@ bool q_delete_mid(struct list_head *head); * Reference: * https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ * - * Return: true for success, false if list is NULL. + * Return: true for success, false if list is NULL or empty. */ bool q_delete_dup(struct list_head *head); From 811532f731172fcb47e68da1e00d115b7eae882d Mon Sep 17 00:00:00 2001 From: lumynou5 Date: Mon, 18 Mar 2024 19:41:31 +0800 Subject: [PATCH 2/2] Update checksum --- scripts/checksums | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checksums b/scripts/checksums index 521c3774e..175038198 100644 --- a/scripts/checksums +++ b/scripts/checksums @@ -1,2 +1,2 @@ -444bab14cb8ad4c949f61b3c10a22a3ed2401425 queue.h +186d420b53e21c6daf8eabe980a5b90780c53bcd queue.h 3337dbccc33eceedda78e36cc118d5a374838ec7 list.h