Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alembiq committed Jun 25, 2024
1 parent 8142704 commit d462b08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lesson13/client13/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn outgoing(mut stream: TcpStream) -> JoinHandle<()> {
match user_input.split_whitespace().next().unwrap_or_default() {
".quit" => {
println!("{} Exiting!", current_time(),);
process::exit(1)
process::exit(0)
}
".file" => {
//TODO cannot read file
Expand Down
2 changes: 1 addition & 1 deletion lesson13/shared13/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn server_address(args: Vec<String>) -> String {
if args.len() > 1 && args[1] == "help" {
println!("=============== USAGE ===============");
println!("{} IPaddress:port", args[0]);
process::exit(1)
process::exit(0)
} else if args.len() > 1 && args[1].parse::<IpAddr>().is_ok() {
args[1].clone()
} else {
Expand Down

0 comments on commit d462b08

Please sign in to comment.