Skip to content

Commit c2384fc

Browse files
committed
fix doc test
1 parent 716474b commit c2384fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ext/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//! Extensions are stored in the `Extensions` map of a request or response. You can access them using:
1717
//!
1818
//! ```rust
19+
//! # let response = http::Response::new(());
1920
//! if let Some(ext) = response.extensions().get::<hyper::ext::ReasonPhrase>() {
2021
//! // use the extension
2122
//! }

0 commit comments

Comments
 (0)