Skip to content

Commit

Permalink
Clarify sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
hohav committed Jan 7, 2024
1 parent c941951 commit 60bd0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
// print general info about the game
println!("{:#?}", game);

// find the frames on which each player died
// example: find the frames on which each player died
let mut is_dead: Vec<_> = game.frames.ports.iter().map(|_| false).collect();
for frame_idx in 0..game.frames.id.len() {
for (port_idx, port_data) in game.frames.ports.iter().enumerate() {
Expand Down

0 comments on commit 60bd0b6

Please sign in to comment.