From 8644b5c33eb80f87ba872d9fbe8482600630d397 Mon Sep 17 00:00:00 2001 From: Martine Lenders <mail@martine-lenders.eu> Date: Thu, 22 Nov 2018 11:35:39 +0100 Subject: [PATCH] gnrc_pktbuf: fix documentation formatting on gnrc_pktbuf_merge() --- sys/include/net/gnrc/pktbuf.h | 62 +++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/sys/include/net/gnrc/pktbuf.h b/sys/include/net/gnrc/pktbuf.h index cf7a7a6736..ad109bb3ef 100644 --- a/sys/include/net/gnrc/pktbuf.h +++ b/sys/include/net/gnrc/pktbuf.h @@ -305,35 +305,39 @@ gnrc_pktsnip_t *gnrc_pktbuf_duplicate_upto(gnrc_pktsnip_t *pkt, gnrc_nettype_t t * the data of all following packet snips into that reallocated space, and * removes the packet snip the data was copied from afterwards. * - * Example: - * Input: - * buffer - * +---------------------------+ +------+ - * | size = 8 | data +-------->| | - * | type = NETTYPE_IPV6 |------------+ +------+ - * +---------------------------+ . . - * | next . . - * v . . - * +---------------------------+ +------+ - * | size = 40 | data +----------->| | - * | type = NETTYPE_UDP |---------+ +------+ - * +---------------------------+ . . - * | next . . - * v - * +---------------------------+ +------+ - * | size = 14 | data +-------------->| | - * | type = NETTYPE_UNDEF |------+ +------+ - * +---------------------------+ . . - * - * - * Output: - * buffer - * +---------------------------+ +------+ - * | size = 62 | data +-------->| | - * | type = NETTYPE_IPV6 |------------+ | | - * +---------------------------+ | | - * | | - * +------+ + * ### Example + * #### Input + * + * buffer + * +---------------------------+ +------+ + * | size = 8 | data +-------->| | + * | type = NETTYPE_IPV6 |------------+ +------+ + * +---------------------------+ . . + * | next . . + * v . . + * +---------------------------+ +------+ + * | size = 40 | data +----------->| | + * | type = NETTYPE_UDP |---------+ +------+ + * +---------------------------+ . . + * | next . . + * v + * +---------------------------+ +------+ + * | size = 14 | data +-------------->| | + * | type = NETTYPE_UNDEF |------+ +------+ + * +---------------------------+ . . + * + * + * #### Output + * + * buffer + * +---------------------------+ +------+ + * | size = 62 | data +-------->| | + * | type = NETTYPE_IPV6 |------------+ | | + * +---------------------------+ | | + * | | + * | | + * | | + * +------+ * . . * * @warning @p pkt needs to write protected before calling this function. -- GitLab