Fixed a documentation error

This commit is contained in:
Trustin Lee 2010-06-30 05:54:47 +00:00
parent 5518344bc3
commit 5c790b5e8a
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ public class ConnectionlessBootstrap extends Bootstrap {
*
* <pre>
* {@link ConnectionlessBootstrap} b = ...;
* b.connect(b.getOption("localAddress"));
* b.bind(b.getOption("localAddress"));
* </pre>
*
* @return a new bound channel which accepts incoming connections

View File

@ -232,7 +232,7 @@ public class ServerBootstrap extends Bootstrap {
*
* <pre>
* {@link ServerBootstrap} b = ...;
* b.connect(b.getOption("localAddress"));
* b.bind(b.getOption("localAddress"));
* </pre>
*
* @return a new bound channel which accepts incoming connections