Correct variable name in code samples.

This commit is contained in:
Bruce Mitchener 2010-11-23 22:13:51 +07:00 committed by Trustin Lee
parent e83b5503da
commit 3d85d56631
2 changed files with 4 additions and 4 deletions

View File

@ -37,9 +37,9 @@ import org.jboss.netty.handler.codec.string.StringDecoder;
* {@link DecoderEmbedder}<String> embedder = new {@link DecoderEmbedder}<String>(
* new {@link Base64Decoder}(), new {@link StringDecoder}());
*
* embedded.offer(base64Data);
* embedder.offer(base64Data);
*
* String decoded = embedded.poll();
* String decoded = embedder.poll();
* assert decoded.equals("foobar");
* </pre>
*

View File

@ -37,9 +37,9 @@ import org.jboss.netty.util.CharsetUtil;
* {@link EncoderEmbedder}&lt;{@link ChannelBuffer}&gt; embedder = new {@link EncoderEmbedder}&lt;{@link ChannelBuffer}&gt;(
* new {@link Base64Encoder}(), new {@link StringEncoder}());
*
* embedded.offer(data);
* embedder.offer(data);
*
* {@link ChannelBuffer} encoded = embedded.poll();
* {@link ChannelBuffer} encoded = embedder.poll();
* assert encoded.toString({@link CharsetUtil}.US_ASCII).equals("Zm9vYmFy");
* </pre>
*