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