From ac8c75687933d01d218d198d59a731ee90d73b8b Mon Sep 17 00:00:00 2001 From: Evelyn <evelyn@cesanta.com> Date: Mon, 25 Jul 2016 17:35:27 +0100 Subject: [PATCH] Update mg_avprintf.md --- docs/c-api/util.h/mg_avprintf.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/c-api/util.h/mg_avprintf.md b/docs/c-api/util.h/mg_avprintf.md index efc424d00..2491db023 100644 --- a/docs/c-api/util.h/mg_avprintf.md +++ b/docs/c-api/util.h/mg_avprintf.md @@ -6,9 +6,9 @@ signature: | int mg_avprintf(char **buf, size_t size, const char *fmt, va_list ap); --- -Print message to buffer. If buffer is large enough to hold the message, -return buffer. If buffer is to small, allocate large enough buffer on heap, -and return allocated buffer. +Prints message to the buffer. If the buffer is large enough to hold the message, +it returns buffer. If buffer is to small, it allocates a large enough buffer on heap +and returns allocated buffer. This is a supposed use case: char buf[5], *p = buf; -- GitLab