fix erroneous doc for cxBufferShift

Sun, 24 Apr 2022 16:23:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 24 Apr 2022 16:23:44 +0200
changeset 531
1b8624c8448e
parent 530
e866516cac17
child 532
080c304ec176

fix erroneous doc for cxBufferShift

src/cx/buffer.h file | annotate | diff | comparison | revisions
--- a/src/cx/buffer.h	Sun Apr 24 15:15:39 2022 +0200
+++ b/src/cx/buffer.h	Sun Apr 24 16:23:44 2022 +0200
@@ -164,7 +164,7 @@
  * Security Note: The shifting operation does \em not erase the previously occupied memory cells.
  * But you can easily do that manually, e.g. by calling
  * <code>memset(buffer->bytes, 0, shift)</code> for a right shift or
- * <code>memset(buffer->size, 0, buffer->capacity - buffer->size)</code>
+ * <code>memset(buffer->bytes + buffer->size, 0, buffer->capacity - buffer->size)</code>
  * for a left shift.
  *
  * @param buffer the buffer

mercurial