doc: Fix ctx type in example
authorBryce Harrington <bryce@osg.samsung.com>
Thu, 16 Jun 2016 00:36:16 +0000 (17:36 -0700)
committerDaniel Stone <daniels@collabora.com>
Tue, 21 Jun 2016 01:35:21 +0000 (11:35 +1000)
xkb_context_new() returns a xkb_context pointer, so change the variable
definition to be consistent.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
doc/quick-guide.md

index 972d09c..a576070 100644 (file)
@@ -32,7 +32,7 @@ Before we can do anything interesting, we need a library context:
 ~~~{.c}
     #include <xkbcommon/xkbcommon.h>
 
-    struct xkb_context ctx;
+    struct xkb_context *ctx;
 
     ctx = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
     if (!ctx) <error>