Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
rectify a formatting issue
  • Loading branch information
fred-sheehan authored Mar 9, 2024
1 parent ad2aafa commit 14a6234
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ascii_hangman/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ fn main() {
/*
Function using the match function to update the gallows based on the number
of incorrect guesses, and _parts_displayed of the gallows shown. Note the
underscore prepending the _parts_displayed variable used to indicate to the rust compiler that the parameter is not called directly, else it would throw a warning about the parameter not being used. This is a common convention in Rust.
underscore prepending the _parts_displayed variable used to indicate to the rust
compiler that the parameter is not called directly, else it would throw a warning
about the parameter not being used. This is a common convention in Rust.
*/
fn update_gallows(gallows: &mut [&str; 6], _parts_displayed: &mut usize, incorrect_guesses: usize) {
match incorrect_guesses {
Expand Down

0 comments on commit 14a6234

Please sign in to comment.