Fix documentation error in ByteBuf

- Fixes #1531
- Thanks to @daschl