package io.cloudevents.examples.vertx;

import io.cloudevents.core.message.MessageReader;
import io.cloudevents.http.vertx.VertxMessageFactory;
import io.vertx.core.Vertx;

public class SampleHTTPServer {

    public static void main(String[] args) {

        if (args.length != 1) {
            System.err.println("Usage: SampleHTTPServer <port>");
            return;
        }
        final int port = Integer.parseInt(args[0]);

        final Vertx vertx = Vertx.vertx();

        // Create HTTP server.
        vertx.createHttpServer()
            .exceptionHandler(System.err::println)
            .requestHandler(request -> {

                // We need to read the event from the HTTP request we get, so create a MessageReader.
                VertxMessageFactory.createReader(request)
                    // Covert the MessageReader to a CloudEvent.
                    .map(MessageReader::toEvent)
                    .onSuccess(event -> {
                        // Print out the event.
                        System.out.println(event);

                        // Write the same event as response in binary mode.
                        VertxMessageFactory.createWriter(request.response()).writeBinary(event);
                    })
                    .onFailure(System.err::println);


            })
            .listen(port, server -> {
                if (server.succeeded()) {
                    System.out.println(
                        "Server listening on port: " + server.result().actualPort()
                    );
                } else {
                    System.err.println(server.cause().getMessage());
                }
            });
    }
}

@@ -812,16 +812,17 @@
    // Co
+n
 vert the

Fix typo in word Covert (#480)