]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: htx: Fix typos in comments
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 07:42:17 +0000 (09:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:49:17 +0000 (10:49 +0200)
Some minor typos in comments were fixed.

src/htx.c

index 295e4617497c806980e2f37610fa14ed93a1d948..c045df76611c7acb3cb2719b71b4a66ff8762bb0 100644 (file)
--- a/src/htx.c
+++ b/src/htx.c
@@ -821,10 +821,10 @@ size_t htx_xfer(struct htx *dst, struct htx *src, size_t count, unsigned int fla
 
                /* the last copied block is a start-line, a header or a trailer */
                if (type == HTX_BLK_REQ_SL || type == HTX_BLK_RES_SL || type == HTX_BLK_HDR || type == HTX_BLK_TLR) {
-                       /* <src > cannot have partial headers or trailers part */
+                       /* <src> cannot have partial headers or trailers part */
                        BUG_ON(blk == NULL);
 
-                       /* Remove partial headers/trailers from <dst> and rollback on <str> to not remove them later */
+                       /* Remove partial headers/trailers from <dst> and rollback on <src> to not remove them later */
                        while (type == HTX_BLK_REQ_SL || type == HTX_BLK_RES_SL || type == HTX_BLK_HDR || type == HTX_BLK_TLR) {
                                BUG_ON(type != htx_get_blk_type(blk));
                                ret -= sizeof(*blk) + htx_get_blksz(blk);