From c3559ddbda7dab23d372e6bc8eb83c17f5d65683 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 3 Apr 2013 22:18:38 +0900 Subject: [PATCH] Fix misleading example in ByteBuf --- buffer/src/main/java/io/netty/buffer/ByteBuf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/ByteBuf.java b/buffer/src/main/java/io/netty/buffer/ByteBuf.java index 1ab78a4435..ce0c68ea71 100644 --- a/buffer/src/main/java/io/netty/buffer/ByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/ByteBuf.java @@ -108,7 +108,7 @@ import java.nio.charset.UnsupportedCharsetException; *
  * // Fills the writable bytes of a buffer with random integers.
  * {@link ByteBuf} buffer = ...;
- * while (buffer.writableBytes() >= 4) {
+ * while (buffer.maxWritableBytes() >= 4) {
  *     buffer.writeInt(random.nextInt());
  * }
  *