From 29ccc2d7bcb931baa3f4f063f65724f7d23d1b29 Mon Sep 17 00:00:00 2001 From: Jonathan Pallant Date: Wed, 31 Jul 2024 16:45:52 +0100 Subject: [PATCH] Correct std::io to std::net --- training-slides/src/io.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/training-slides/src/io.md b/training-slides/src/io.md index cf23b99..fdcdd03 100644 --- a/training-slides/src/io.md +++ b/training-slides/src/io.md @@ -122,7 +122,7 @@ fn main() -> std::io::Result<()> { ## Networking -* In Rust, a [`TcpStream`](https://doc.rust-lang.org/std/io/struct.TcpStream.html) also implements the `Read` and `Write` traits. +* In Rust, a [`TcpStream`](https://doc.rust-lang.org/std/net/struct.TcpStream.html) also implements the `Read` and `Write` traits. * You create a `TcpStream` with either: * [`TcpStream::connect`](https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.connect) - for outbound connections * [`TcpListener::accept`](https://doc.rust-lang.org/std/net/struct.TcpListener.html#method.accept) - for incoming connections