commit 78ff364c8de6218a18b4da869bb8b0af72786222
parent bae117b68c60c63fd93f6bb4605a358ba958cd49
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 9 Jun 2019 21:18:12 +0200
Fix a couple of typos in the bundled examples.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/async-curl/src/http.c b/examples/async-curl/src/http.c
@@ -122,7 +122,7 @@ state_result(struct http_request *req)
*/
kore_curl_response_as_bytes(client, &body, &len);
- /* We could check the existance of a header: */
+ /* We could check the existence of a header: */
if (kore_curl_http_get_header(client, "server", &header))
printf("got server header: '%s'\n", header);
diff --git a/examples/nohttp/src/nohttp.c b/examples/nohttp/src/nohttp.c
@@ -59,7 +59,7 @@ connection_setup(struct connection *c)
* net_send_flush() or net_recv_flush() if KORE_EVENT_WRITE or
* KORE_EVENT_READ are set respectively in c->evt.flags.
* Returning KORE_RESULT_ERROR from this callback will disconnect the
- * connection alltogether.
+ * connection altogether.
*/
int
connection_handle(struct connection *c)
diff --git a/examples/pgsql-sync/src/pgsql-sync.c b/examples/pgsql-sync/src/pgsql-sync.c
@@ -64,7 +64,7 @@ page(struct http_request *req)
/*
* Now we can fire off the query, once it returns we either have
- * a result on which we can operate or an error occured.
+ * a result on which we can operate or an error occurred.
*/
if (!kore_pgsql_query(&sql, "SELECT * FROM coders")) {
kore_pgsql_logerror(&sql);