Update southbound comment

This commit is contained in:
2021-12-29 15:36:46 +01:00
parent 9dacb4c1ae
commit 09b590e927

View File

@@ -35,7 +35,7 @@ fn advance(width: usize, state: &mut [u8]) -> bool {
}
}
// Now the southbound herd. Y in the outer loop for better cache locality
// Then move the southbound herd. Need to do by column because of the first entry special case
for x in 0..width {
let last_index = state.len() - width + x;
let swap_last = state[x] == b'.' && state[last_index] == b'v';