is_empty
This commit is contained in:
parent
ffe7f7c9af
commit
d18bc9dae6
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ impl NeighbourCounter for [&str] {
|
|||
}
|
||||
|
||||
pub fn annotate(garden: &[&str]) -> Vec<String> {
|
||||
if 0 == garden.len() {
|
||||
if garden.is_empty() {
|
||||
return vec![];
|
||||
}
|
||||
(0..garden.len())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue