diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-14 16:01:19 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-14 16:01:19 +0100 |
commit | 1746c27506ec166bdebb53205a74b17b0017fc3d (patch) | |
tree | 31a7516eec8e8b592309f11b7206928e57520ce6 /lib/src/lib.rs | |
parent | Indexer: Stem words prior to adding/searching them (diff) | |
download | OSSE-levshtein.tar.gz OSSE-levshtein.tar.bz2 OSSE-levshtein.zip |
LEV levshtein
Diffstat (limited to 'lib/src/lib.rs')
-rw-r--r-- | lib/src/lib.rs | 4 |
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) } } |