Add note about country to continent mapping

This commit is contained in:
Jon Häggblad
2023-08-30 09:57:56 +02:00
parent ee6b6ecc7e
commit 8af83ceac6
@@ -52,6 +52,8 @@ pub enum CountryGroup {
impl CountryGroup {
// We map contry codes into group, which initially are continent codes to a first approximation,
// but we do it manually to reserve the right to tweak this distribution for our purposes.
// NOTE: I did this quickly and it's not a complete list of all countries, but only those that
// were present in the network at the time. Please add more as needed.
fn new(country_code: &str) -> Self {
let country_code = country_code.to_uppercase();
use CountryGroup::*;