diff --git a/Cargo.toml b/Cargo.toml index 5aa302333..91d1212fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ edition = "2018" [package.metadata.docs.rs] # features that docs.rs will build with features = ["openssl", "rustls", "compress", "cookies", "secure-cookies"] +rustdoc-args = ["--cfg", "docsrs"] [lib] name = "actix_web" diff --git a/src/extract.rs b/src/extract.rs index 7c2572d43..396f8601c 100644 --- a/src/extract.rs +++ b/src/extract.rs @@ -11,12 +11,10 @@ use futures_core::ready; use crate::{dev::Payload, Error, HttpRequest}; -/// [`FromRequest`] is one of the most commonly used trait, although some may not realize it. -/// /// A type that implements [`FromRequest`] is called an **extractor** and can extract data /// from the request. Examples of types that implement this trait are [`Json`], [`Form`], [`Path`]. /// -/// An extractor can be customized by injecting the corresponding configuration with: +/// An extractor can be customized by injecting the corresponding configuration with one of: /// /// - [`App::data()`](`crate::App::data`) /// - [`App::app_data()`](`crate::App::app_data`)