From e4e0a39f1ff5c2e46013ddb4a2dfbfa5562d0f43 Mon Sep 17 00:00:00 2001
From: Adam Blank <blank@caltech.edu>
Date: Wed, 17 Apr 2019 02:34:47 -0700
Subject: [PATCH] Update comparator.h

---
 comparator.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/comparator.h b/comparator.h
index 79dedf3..18ecdab 100644
--- a/comparator.h
+++ b/comparator.h
@@ -4,12 +4,14 @@
 #include <stddef.h>
 
 typedef int (*IntComparator)(const int a, const int b);
-int int_asc(const int a, const int b); 
-int int_desc(const int a, const int b); 
+int int_asc(const int a, const int b);
+int int_desc(const int a, const int b);
 
 typedef int (*StringComparator)(const char *a, const char *b);
+/* We don't need to define a StringComparator because strcmp is one! */
 
 typedef int (*Comparator)(const void *a, const void *b);
-int int_p_asc(const int *a, const int *b); 
-int int_p_desc(const int *a, const int *b); 
+int int_p_asc(const int *a, const int *b);
+int int_p_desc(const int *a, const int *b);
+
 #endif /* __COMPARATOR_H */
-- 
GitLab