Split first sentence into its own paragraph in TypedHeader docs (#485)

This commit is contained in:
Jonas Platte 2021-11-09 12:14:42 +01:00 committed by GitHub
parent 3f84eca753
commit bcd18a03bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -6,9 +6,10 @@ use headers::HeaderMapExt;
use http_body::Full;
use std::{convert::Infallible, ops::Deref};
/// Extractor that extracts a typed header value from [`headers`]. In general, it's
/// recommended to extract only the needed headers via `TypedHeader` rather than removing all
/// headers with the `HeaderMap` extractor.
/// Extractor that extracts a typed header value from [`headers`].
///
/// In general, it's recommended to extract only the needed headers via `TypedHeader` rather than
/// removing all headers with the `HeaderMap` extractor.
///
/// # Example
///