diff --git a/README.md b/README.md index 7bd7f48..0de846f 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,5 @@ Endpoint is transport-agnostic interface for incoming connections: And IpcStream is transport-agnostic io: ```rust let endpoint = match Endpoint::new(endpoint_addr, handle).unwrap(); - endpoint.for_each(|(ipc_stream: IpcStream, _)| io::write_all(b"Hello!")); + endpoint.for_each(|(ipc_stream: IpcStream, _)| io::write_all(ipc_stream, b"Hello!")); ```