Update comment

Co-authored-by: Kevin Guthrie <kevin.guthrie@gmail.com>
This commit is contained in:
Alexandre Antonio Juca 2024-03-13 18:24:53 +01:00 committed by GitHub
parent 61a55ae3fa
commit 7da3e13d84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -563,7 +563,7 @@ fn header_to_h1_wire(key_map: Option<&CaseMap>, value_map: &HMap, buf: &mut impl
let iter = key_map.iter().zip(value_map.iter()); let iter = key_map.iter().zip(value_map.iter());
for ((header, case_header), (header2, val)) in iter { for ((header, case_header), (header2, val)) in iter {
if header != header2 { if header != header2 {
// in case the header iteration order changes in newer versions of HMap // in case the header iteration order changes in future versions of HMap
panic!("header iter mismatch {}, {}", header, header2) panic!("header iter mismatch {}, {}", header, header2)
} }
buf.put_slice(case_header.as_slice()); buf.put_slice(case_header.as_slice());