From fd3a3e743068d2d9a2eb3e056065e531d65c821a Mon Sep 17 00:00:00 2001 From: Rinat Ibragimov Date: Sat, 22 Sep 2018 23:48:44 +0300 Subject: [PATCH] Fix typos --- doc/userguide.html | 6 +++--- doc/userguide.txt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/userguide.html b/doc/userguide.html index 073f4ed..8320957 100644 --- a/doc/userguide.html +++ b/doc/userguide.html @@ -1934,7 +1934,7 @@ characters that are not inside an A(...), such as the i in the

For variable-length arrays, each call to tpl_unpack() unpacks another element. The return value can be used to tell when you’re done: if it’s positive, an element was unpacked; if it’s 0, nothing was unpacked because there are no more -elements. A negative retun value indicates an error (e.g. invalid index number). +elements. A negative return value indicates an error (e.g. invalid index number). In this document, we usually unpack variable-length arrays using a while loop:

@@ -1990,7 +1990,7 @@ run, this program prints:

tpl_free

The final step for any tpl is to release it using tpl_free(). Its only -argument is the the tpl_node* to free.

+argument is the tpl_node* to free.

tpl_free( tn );
@@ -2011,7 +2011,7 @@ current number of elements; it will decrease as elements are unpacked).

tpl_peek

-

This function peeks into a file or a memory buffer containing a tpl image and +

This function peeks into a file or a memory buffer containing a tpl image and returns a copy of its format string. It can also peek at the lengths of any fixed-length arrays in the format string, or it can also peek into the data stored in the tpl.

diff --git a/doc/userguide.txt b/doc/userguide.txt index 60c74e0..27d59f3 100644 --- a/doc/userguide.txt +++ b/doc/userguide.txt @@ -900,7 +900,7 @@ Unpacking elements from an array For variable-length arrays, each call to `tpl_unpack()` unpacks another element. The return value can be used to tell when you're done: if it's positive, an element was unpacked; if it's 0, nothing was unpacked because there are no more -elements. A negative retun value indicates an error (e.g. invalid index number). +elements. A negative return value indicates an error (e.g. invalid index number). In this document, we usually unpack variable-length arrays using a `while` loop: while( tpl_unpack( tn, 1 ) > 0 ) { @@ -954,7 +954,7 @@ run, this program prints: tpl_free ~~~~~~~~ The final step for any tpl is to release it using `tpl_free()`. Its only -argument is the the `tpl_node*` to free. +argument is the `tpl_node*` to free. tpl_free( tn ); @@ -975,7 +975,7 @@ current number of elements; it will decrease as elements are unpacked). [[tpl_peek]] tpl_peek ~~~~~~~~ -This function peeks into a file or a memory buffer containing a tpl image and +This function peeks into a file or a memory buffer containing a tpl image and returns a copy of its format string. It can also peek at the lengths of any fixed-length arrays in the format string, or it can also peek into the data stored in the tpl.