Update docs search/sublist_search.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Nitin Sharma 2021-07-02 07:44:23 +05:30 committed by GitHub
parent a003fd3a46
commit bfbc532405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ struct Node {
* @brief Main searching function
* @param sublist A linked list which is supposed to be searched in mainList.
* @param mainList A linked list in which sublist will be searched.
* @returns bool If the sublist is found, returns true, else false.
* @returns true if the sublist is found
* @returns false if the sublist is NOT found
*/
bool sublistSearch(Node *sublist, Node *mainList) {
if (sublist == nullptr || mainList == nullptr) {