Title: Hands-On Rust (Chapter 11: Carve Caverns with Drunken Miners)
if stagger_distance > STAGGER_DISTANCE {
reads a bit “odd”
maybe: let mut distance_staggered
??
if distance_staggered > STAGGER_DISTANCE {
break;
}
Title: Hands-On Rust (Chapter 11: Carve Caverns with Drunken Miners)
if stagger_distance > STAGGER_DISTANCE {
reads a bit “odd”
maybe: let mut distance_staggered
??
if distance_staggered > STAGGER_DISTANCE {
break;
}
Thank you! I agree, that is ugly. I’ll look to get the variable name changed for the next beta. (In my initial version it was called iteration_count
, but that was too vague - one of the tech reviewers suggested something a bit more flavorful).