This commit is contained in:
Rorik Star Platinum 2025-12-07 20:45:24 +03:00
parent ffe7f7c9af
commit d18bc9dae6

View file

@ -21,7 +21,7 @@ impl NeighbourCounter for [&str] {
} }
pub fn annotate(garden: &[&str]) -> Vec<String> { pub fn annotate(garden: &[&str]) -> Vec<String> {
if 0 == garden.len() { if garden.is_empty() {
return vec![]; return vec![];
} }
(0..garden.len()) (0..garden.len())