about summary refs log tree commit diff
path: root/lib/src/lib.rs
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-11-14 16:01:19 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-11-14 16:01:19 +0100
commit1746c27506ec166bdebb53205a74b17b0017fc3d (patch)
tree31a7516eec8e8b592309f11b7206928e57520ce6 /lib/src/lib.rs
parentIndexer: Stem words prior to adding/searching them (diff)
downloadOSSE-levshtein.tar.gz
OSSE-levshtein.tar.bz2
OSSE-levshtein.zip
Diffstat (limited to 'lib/src/lib.rs')
-rw-r--r--lib/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lib.rs b/lib/src/lib.rs
index 54e6ea9..5c095c8 100644
--- a/lib/src/lib.rs
+++ b/lib/src/lib.rs
@@ -36,10 +36,10 @@ pub mod lib {
         }
     }
 
-    //Reverse ordering as priority: 1 is less than priority: 2
+    //Priority 1 is higher than priority 2
     impl Ord for IndexedResource {
         fn cmp(&self, other: &Self) -> Ordering {
-            self.priority.cmp(&other.priority).reverse()
+            self.priority.cmp(&other.priority)
         }
     }