[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Incremental search



On Mon, Dec 18, 2017 at 12:14:59AM +0300, Azat Khuzhin wrote:
> marcin.szewczyk@xxxxxxxxx wrote:
> > I think that the last_with_datap comment needs some adjustments.
> > [...]
> > And I think it would be grammatically correct and clearer if it were:
> >
> >     "The last_with_datap pointer points at _whatever 'next' pointer_
> >     pointing at the last_with_data chain."
> 
> Indeed, patch?

Created a PR:
https://github.com/libevent/libevent/pull/583

Patch additionally attached.

-- 
Marcin Szewczyk
http://wodny.org
From 88a1abe809e5d29618b722ff81ee2fb14119314f Mon Sep 17 00:00:00 2001
From: Marcin Szewczyk <marcin.szewczyk@xxxxxxxxx>
Date: Mon, 18 Dec 2017 14:01:15 +0100
Subject: [PATCH] Fixed last_with_datap description

Grammar and typo fix
---
 evbuffer-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evbuffer-internal.h b/evbuffer-internal.h
index cf4bddc..d09b4f1 100644
--- a/evbuffer-internal.h
+++ b/evbuffer-internal.h
@@ -92,7 +92,7 @@ struct evbuffer {
 	 * If the buffer has no chains, it is NULL.
 	 *
 	 * The last_with_datap pointer points at _whatever 'next' pointer_
-	 * points at the last_with_datap chain.  If the last_with_data chain
+	 * pointing at the last_with_data chain. If the last_with_data chain
 	 * is the first chain, or it is NULL, then the last_with_datap pointer
 	 * is &buf->first.
 	 */
-- 
2.1.4