summaryrefslogtreecommitdiffstats
path: root/src/utils/gen_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/gen_util.rs')
-rw-r--r--src/utils/gen_util.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/gen_util.rs b/src/utils/gen_util.rs
index 3c97a2bd..2e13968f 100644
--- a/src/utils/gen_util.rs
+++ b/src/utils/gen_util.rs
@@ -91,19 +91,19 @@ pub fn get_simple_byte_values(bytes: u64, spacing: bool) -> (f64, String) {
/// Gotta get partial ordering? No problem, here's something to deal with it~
pub fn get_ordering<T: std::cmp::PartialOrd>(
- a_val: T, b_val: T, reverse_order: bool,
+ a_val: T, b_val: T, descending_order: bool,
) -> std::cmp::Ordering {
match a_val.partial_cmp(&b_val) {
Some(x) => match x {
Ordering::Greater => {
- if reverse_order {
+ if descending_order {
std::cmp::Ordering::Less
} else {
std::cmp::Ordering::Greater
}
}
Ordering::Less => {
- if reverse_order {
+ if descending_order {
std::cmp::Ordering::Greater
} else {
std::cmp::Ordering::Less