Skip to content

Commit b9f61d8

Browse files
author
Nick Vidal
committed
fix: comment all printlns
Signed-off-by: Nick Vidal <[email protected]>
1 parent d7aaaf9 commit b9f61d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Rust/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn check_single(query: Option<&str>, the_word: String) -> Vec<u8> {
4545
let the_guess = the_params_parts.0;
4646
let the_guess_parts = the_guess.split_once("=").unwrap();
4747
let guess = the_guess_parts.1;
48-
println!("The guess: {}", guess);
48+
//println!("The guess: {}", guess);
4949

5050
let guess_size:usize = guess.len() as usize;
5151
if guess_size == 5 {
@@ -84,10 +84,10 @@ fn check_multi(query: Option<&str>, guesses: Rc<RefCell<Vec<String>>>, matches:
8484
let the_player = the_params_parts.1;
8585
let the_guess_parts = the_guess.split_once("=").unwrap();
8686
let guess = the_guess_parts.1;
87-
println!("The guess: {}", guess);
87+
//println!("The guess: {}", guess);
8888
let the_player_parts = the_player.split_once("=").unwrap();
8989
let player = the_player_parts.1;
90-
println!("The player: {}", player);
90+
//println!("The player: {}", player);
9191

9292
// Wrong word size
9393
let word_size:usize = guess.len() as usize;
@@ -127,17 +127,17 @@ fn check_multi(query: Option<&str>, guesses: Rc<RefCell<Vec<String>>>, matches:
127127
// Push word to matches
128128
matches.borrow_mut().push(guess.to_string());
129129
response = vec![b'p'; 5];
130-
println!("New match: {}", guess.to_string());
130+
//println!("New match: {}", guess.to_string());
131131

132132
// Push winners
133133
winners.borrow_mut().push(player.to_string());
134134
winners.borrow_mut().push(winner.to_string());
135-
println!("Winners: {}, {}", player.to_string(), winner.to_string());
135+
//println!("Winners: {}, {}", player.to_string(), winner.to_string());
136136
} else {
137137
// Push new word to guesses
138138
guesses.borrow_mut().push(guess.to_string());
139139
players.borrow_mut().push(player.to_string());
140-
println!("New word: {}", guess.to_string());
140+
//println!("New word: {}", guess.to_string());
141141
}
142142

143143
}

0 commit comments

Comments
 (0)