[PATCH libxkbcommon 1/3] doc: Fix ctx type in example

Bryce Harrington bryce at osg.samsung.com
Thu Jun 16 00:36:16 UTC 2016


xkb_context_new() returns a xkb_context pointer, so change the variable
definition to be consistent.

Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
 doc/quick-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/quick-guide.md b/doc/quick-guide.md
index 972d09c..a576070 100644
--- a/doc/quick-guide.md
+++ b/doc/quick-guide.md
@@ -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>
-- 
1.9.1



More information about the wayland-devel mailing list