Fix misleading example in ByteBuf

This commit is contained in:
Trustin Lee 2013-04-03 22:18:38 +09:00
parent baf9ecfe7b
commit c3559ddbda

View File

@ -108,7 +108,7 @@ import java.nio.charset.UnsupportedCharsetException;
* <pre>
* // 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());
* }
* </pre>