Add more explicit comment.
This commit is contained in:
parent
1c70d82a1e
commit
f326ea59da
@ -107,7 +107,7 @@ fn main() {
|
|||||||
prisoners.push(prisoner_i);
|
prisoners.push(prisoner_i);
|
||||||
}
|
}
|
||||||
|
|
||||||
// print result
|
// if any prisoner has not found their number
|
||||||
if prisoners.iter().any(|i| !i.found)
|
if prisoners.iter().any(|i| !i.found)
|
||||||
{
|
{
|
||||||
println!("failure");
|
println!("failure");
|
||||||
|
Loading…
Reference in New Issue
Block a user