From dfc05a6ed7dbc59416b0a2cff26ac91f64e6af26 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 5 Jul 2013 17:03:34 +0900 Subject: [PATCH] Fix documentation error in ByteBuf - Fixes #1531 - Thanks to @daschl --- buffer/src/main/java/io/netty/buffer/ByteBuf.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buffer/src/main/java/io/netty/buffer/ByteBuf.java b/buffer/src/main/java/io/netty/buffer/ByteBuf.java index 33d69952ca..c7f20de980 100644 --- a/buffer/src/main/java/io/netty/buffer/ByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/ByteBuf.java @@ -78,7 +78,7 @@ import java.nio.charset.UnsupportedCharsetException; * current {@link #readerIndex() readerIndex} and increase it by the number of * read bytes. If the argument of the read operation is also a * {@link ByteBuf} and no destination index is specified, the specified - * buffer's {@link #readerIndex() readerIndex} is increased together. + * buffer's {@link #writerIndex() writerIndex} is increased together. *

* If there's not enough content left, {@link IndexOutOfBoundsException} is * raised. The default value of newly allocated, wrapped or copied buffer's @@ -181,7 +181,7 @@ import java.nio.charset.UnsupportedCharsetException; * For complicated searches, use {@link #forEachByte(int, int, ByteBufProcessor)} with a {@link ByteBufProcessor} * implementation. * - *

Mark and reset

+ *

Mark and reset

* * There are two marker indexes in every buffer. One is for storing * {@link #readerIndex() readerIndex} and the other is for storing