* [PATCH] cbtree: fix a typo
@ 2024-09-15 23:05 Andrew Kreimer
2024-09-16 7:30 ` Patrick Steinhardt
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Kreimer @ 2024-09-15 23:05 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix a typo in comments.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
cbtree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cbtree.c b/cbtree.c
index c1cc30a5dc..cf8cf75b89 100644
--- a/cbtree.c
+++ b/cbtree.c
@@ -12,7 +12,7 @@ static struct cb_node *cb_node_of(const void *p)
return (struct cb_node *)((uintptr_t)p - 1);
}
-/* locate the best match, does not do a final comparision */
+/* locate the best match, does not do a final comparison */
static struct cb_node *cb_internal_best_match(struct cb_node *p,
const uint8_t *k, size_t klen)
{
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] cbtree: fix a typo
2024-09-15 23:05 [PATCH] cbtree: fix a typo Andrew Kreimer
@ 2024-09-16 7:30 ` Patrick Steinhardt
2024-09-16 9:52 ` Andrew Kreimer
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Steinhardt @ 2024-09-16 7:30 UTC (permalink / raw)
To: Andrew Kreimer; +Cc: git
On Mon, Sep 16, 2024 at 02:05:22AM +0300, Andrew Kreimer wrote:
> Fix a typo in comments.
>
> Signed-off-by: Andrew Kreimer <algonell@gmail.com>
Thanks for these fixes, all three of them look good to me. For future
such patch series I'd recommend to send a single series that combines
such related fixes. It makes it a bit easier to keep track of these
similar patches and review them in one go.
> ---
> cbtree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cbtree.c b/cbtree.c
> index c1cc30a5dc..cf8cf75b89 100644
> --- a/cbtree.c
> +++ b/cbtree.c
> @@ -12,7 +12,7 @@ static struct cb_node *cb_node_of(const void *p)
> return (struct cb_node *)((uintptr_t)p - 1);
> }
>
> -/* locate the best match, does not do a final comparision */
> +/* locate the best match, does not do a final comparison */
> static struct cb_node *cb_internal_best_match(struct cb_node *p,
> const uint8_t *k, size_t klen)
> {
We might convert this to be a proper sentence while at it, namely
s/locate/Locate/ and s/comparison/&./. But no need to reroll this patch
for that, as your change is a strict improvement by itself already.
Thanks!
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cbtree: fix a typo
2024-09-16 7:30 ` Patrick Steinhardt
@ 2024-09-16 9:52 ` Andrew Kreimer
2024-09-16 17:50 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Kreimer @ 2024-09-16 9:52 UTC (permalink / raw)
To: Patrick Steinhardt; +Cc: git
On Mon, Sep 16, 2024 at 09:30:07AM +0200, Patrick Steinhardt wrote:
> On Mon, Sep 16, 2024 at 02:05:22AM +0300, Andrew Kreimer wrote:
> > Fix a typo in comments.
> >
> > Signed-off-by: Andrew Kreimer <algonell@gmail.com>
>
> Thanks for these fixes, all three of them look good to me. For future
> such patch series I'd recommend to send a single series that combines
> such related fixes. It makes it a bit easier to keep track of these
> similar patches and review them in one go.
>
Understood.
> > ---
> > cbtree.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/cbtree.c b/cbtree.c
> > index c1cc30a5dc..cf8cf75b89 100644
> > --- a/cbtree.c
> > +++ b/cbtree.c
> > @@ -12,7 +12,7 @@ static struct cb_node *cb_node_of(const void *p)
> > return (struct cb_node *)((uintptr_t)p - 1);
> > }
> >
> > -/* locate the best match, does not do a final comparision */
> > +/* locate the best match, does not do a final comparison */
> > static struct cb_node *cb_internal_best_match(struct cb_node *p,
> > const uint8_t *k, size_t klen)
> > {
>
> We might convert this to be a proper sentence while at it, namely
> s/locate/Locate/ and s/comparison/&./. But no need to reroll this patch
> for that, as your change is a strict improvement by itself already.
>
> Thanks!
>
> Patrick
Thank you!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cbtree: fix a typo
2024-09-16 9:52 ` Andrew Kreimer
@ 2024-09-16 17:50 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2024-09-16 17:50 UTC (permalink / raw)
To: Andrew Kreimer; +Cc: Patrick Steinhardt, git
Andrew Kreimer <algonell@gmail.com> writes:
>> Thanks!
>>
>> Patrick
>
> Thank you!
Will queue. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-16 17:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-15 23:05 [PATCH] cbtree: fix a typo Andrew Kreimer
2024-09-16 7:30 ` Patrick Steinhardt
2024-09-16 9:52 ` Andrew Kreimer
2024-09-16 17:50 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).