Skip to contentSkip to conversation

cbtree: fix a typo

PATCH In review Andrew Kreimer 3 participants 4 messages Sep 15, 2024 – Sep 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cbtree: fix a typo

Fix a typo in comments.

---
 cbtree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cbtree.c +1 -1
index c1cc30a5dc..cf8cf75b89 100644
@@ -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)
 {
Signature · 1 line
2.39.5
#1 lore raw
Quoted 3 lines · Andrew Kreimer

Fix a typo in comments.

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.

Quoted 9 lines
---
 cbtree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cbtree.c +0 -0
index c1cc30a5dc..cf8cf75b89 100644

cbtree.c static struct cb_node *cb_node_of(const void *p) · line 18

Quoted 8 lines
cbtree.c +1 -1
@@ -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

#2 lore raw
Quoted 10 lines · Patrick Steinhardt
Quoted 3 lines · Andrew Kreimer

Fix a typo in comments.

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.

Quoted 22 lines
Quoted 9 lines
---
 cbtree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cbtree.c +0 -0
index c1cc30a5dc..cf8cf75b89 100644

cbtree.c static struct cb_node *cb_node_of(const void *p) · line 18

Quoted 8 lines
cbtree.c +1 -1
@@ -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.

Quoted 3 lines

Thanks!

Patrick

Thank you!

#3 lore raw
Quoted 5 lines · Andrew Kreimer
Quoted 3 lines

Thanks!

Patrick

Thank you!

Will queue. Thanks.