Skip to content

Commit da57233

Browse files
committed
fix: update headers_***_iterator doc comments
1 parent b74b111 commit da57233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http/request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,13 @@ impl Request {
393393
}
394394

395395
/// Iterate over headers_in
396-
/// each header item is (String, String) (copied)
396+
/// each header item is (&str, &str) (borrowed)
397397
pub fn headers_in_iterator(&self) -> NgxListIterator {
398398
unsafe { list_iterator(&self.0.headers_in.headers) }
399399
}
400400

401401
/// Iterate over headers_out
402-
/// each header item is (String, String) (copied)
402+
/// each header item is (&str, &str) (borrowed)
403403
pub fn headers_out_iterator(&self) -> NgxListIterator {
404404
unsafe { list_iterator(&self.0.headers_out.headers) }
405405
}

0 commit comments

Comments
 (0)