xonecas.io
5119
Lh

lazy-history / commit 5da541c

chore: remove misleading comment

Sean2025-05-02 5da541c5ffc8e083de86ccf4af85c883e844760e parent aefb1fe

1 file changed

lib/search-util.go+0−1
@@ -23,7 +23,6 @@ func FindOne(history []string, query string) (string, int) {
2323 func Search(history []string, query string) []string {
2424 results := []string{}
2525 // sort the array
26- // note: am using an explicit sort function because unknown types in actual array, and not using a stable sort function because don't care that items that are equal to one another remain in the same order.
2726 slices.Sort(history)
2827
2928 // Keep searching for matches until we don't find any more