We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68c8a8e commit 21cabcaCopy full SHA for 21cabca
src/main.rs
@@ -64,10 +64,10 @@ fn merge(cidr1: String, cidr2: String) -> Vec<String> {
64
let cidr2_mask = calc_network_mask(cidr2.clone());
65
66
//inclusion
67
- if cidr1_net < cidr2_net && cidr2_brd < cidr1_brd {
+ if cidr1_net <= cidr2_net && cidr2_brd <= cidr1_brd {
68
return vec![cidr1];
69
}
70
- if cidr2_net < cidr1_net && cidr1_brd < cidr2_brd {
+ if cidr2_net <= cidr1_net && cidr1_brd <= cidr2_brd {
71
return vec![cidr2];
72
73
0 commit comments