diff --git a/docs/1-fromBIO&NIOToNetty.md b/docs/1-fromBIO&NIOToNetty.md index 002b10d..0f3d008 100644 --- a/docs/1-fromBIO&NIOToNetty.md +++ b/docs/1-fromBIO&NIOToNetty.md @@ -153,7 +153,7 @@ public class HelloClient { public static void main(String[] args) { HelloClient helloClient = new HelloClient(); - helloClient.send(new Message("content from client"), "127.0.0.1", 6666); + Message message = (Message) helloClient.send(new Message("content from client"), "127.0.0.1", 6666); System.out.println("client receive message:" + message.getContent()); } }