This commit is contained in:
Irving Ou 2024-02-07 12:07:53 -05:00
parent ec5d9540b6
commit 90a96756d6
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ fn main() -> io::Result<()> {
println!("Listening on {}", listener.local_addr().unwrap());
for stream in listener.incoming() {
let mut stream = stream.unwrap();
stream.write(b"Hello, world!\n").unwrap();
stream.write_all(b"Hello, world!\n").unwrap();
}
});
std::thread::sleep(Duration::from_millis(100));