Minor: simplify example code
authorKhaled Hosny <khaledhosny@eglug.org>
Sat, 20 Oct 2018 14:44:51 +0000 (15:44 +0100)
committerKhaled Hosny <khaledhosny@eglug.org>
Tue, 30 Oct 2018 17:14:57 +0000 (19:14 +0200)
Co-Authored-By: n8willis <nwillis@glyphography.com>
docs/usermanual-getting-started.xml

index 188d449..72a3746 100644 (file)
       #include &lt;hb.h&gt;
       hb_buffer_t *buf;
       buf = hb_buffer_create();
-      hb_buffer_add_utf8(buf, text, strlen(text), 0, strlen(text));
+      hb_buffer_add_utf8(buf, text, -1, 0, -1);
     </programlisting>
     <orderedlist numeration="arabic">
       <listitem override="2">