summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/array.c b/array.c
index 13c475e..c6ea712 100644
--- a/array.c
+++ b/array.c
@@ -399,15 +399,13 @@ nul_buffer_is_empty (nul_buffer_t *buffer)
/* This function appends uninitialized data of length @size
* to the buffer, then returns a pointer to the added data.
* The intention is that the app can read() into this
- * memory, then use nul_buffer_pop_tail() to delete the
+ * memory, then use nul_buffer_delete_tail() to delete the
* area that wasn't read into. Example
*
* guint8 *area = nul_buffer_alloc_tail (buffer, 8192);
*
* n_read = read (fd, area, 8192);
*
- * nul_buffer_delete_tail (buffer, 8192 - (n_read < 0)? 0 : n_read);
- *
* if (n_read < 0)
* {
* nul_buffer_delete_tail (buffer, 8192);