fix doctest

This commit is contained in:
Rob Ede 2021-12-02 17:04:26 +00:00
parent ef9d8da1f8
commit 2ebff25c38
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 3 additions and 1 deletions

View File

@ -14,3 +14,5 @@ cargo test --lib --tests -p=actix-test --all-features
cargo test --lib --tests -p=actix-files cargo test --lib --tests -p=actix-files
cargo test --lib --tests -p=actix-multipart --all-features cargo test --lib --tests -p=actix-multipart --all-features
cargo test --lib --tests -p=actix-web-actors --all-features cargo test --lib --tests -p=actix-web-actors --all-features
cargo test --workspace --doc

View File

@ -40,7 +40,7 @@ common_header! {
/// use actix_web::HttpResponse; /// use actix_web::HttpResponse;
/// use actix_web::http::header::{AcceptEncoding, Encoding, qitem}; /// use actix_web::http::header::{AcceptEncoding, Encoding, qitem};
/// ///
/// let mut builder = HttpResponse::new(); /// let mut builder = HttpResponse::Ok();
/// builder.insert_header( /// builder.insert_header(
/// AcceptEncoding(vec![ /// AcceptEncoding(vec![
/// qitem(Encoding::Chunked), /// qitem(Encoding::Chunked),