Fix typo in docs

This commit is contained in:
Rossen Stoyanchev
2017-03-07 20:37:52 -05:00
parent cea3a078b2
commit f5804b40b2

View File

@@ -347,7 +347,7 @@ HttpServlet servlet = new ServletHttpHandlerAdapter(handler);
// Reactor Netty
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
HttpServer.create(host, port).newHandler(adapter).onClose().block();
HttpServer.create(host, port).newHandler(adapter).block();
// RxNetty
RxNettyHttpHandlerAdapter adapter = new RxNettyHttpHandlerAdapter(handler);