summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2018-10-20 15:44:51 +0100
committerKhaled Hosny <khaledhosny@eglug.org>2018-10-30 19:14:57 +0200
commit6e4dd58a4af003eeec93cbe90d1258d91a38b53c (patch)
tree8315ed819bdde035a5354560dd7ba9c8a1a79342 /docs
parentf9ee0deceebd8952a8d80f3fd7b264b33e70f703 (diff)
Minor: simplify example code
Co-Authored-By: n8willis <nwillis@glyphography.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/usermanual-getting-started.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/usermanual-getting-started.xml b/docs/usermanual-getting-started.xml
index 188d449d..72a37462 100644
--- a/docs/usermanual-getting-started.xml
+++ b/docs/usermanual-getting-started.xml
@@ -128,7 +128,7 @@
#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">