diff --git a/buffer/src/main/java/io/netty/buffer/ByteBuf.java b/buffer/src/main/java/io/netty/buffer/ByteBuf.java index e2818c9a27..addb338469 100644 --- a/buffer/src/main/java/io/netty/buffer/ByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/ByteBuf.java @@ -88,7 +88,7 @@ import java.nio.charset.UnsupportedCharsetException; *
* // Iterates the readable bytes of a buffer. * {@link ByteBuf} buffer = ...; - * while (buffer.readable()) { + * while (buffer.isReadable()) { * System.out.println(buffer.readByte()); * } *