1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 13:29:24 +00:00

fix doc test

This commit is contained in:
Rob Ede 2022-01-03 15:35:47 +00:00
parent 68cd853aa2
commit 19a46e3925
No known key found for this signature in database
GPG key ID: 97C636207D3EF933

View file

@ -61,7 +61,7 @@ use crate::{
/// use actix_web::{middleware, http::header, web, App, HttpResponse, Responder};
///
/// async fn index_handler() -> actix_web::Result<impl Responder> {
/// Ok(actix_files::NamedFile::open("./assets/index.html.gz")?
/// Ok(actix_files::NamedFile::open_async("./assets/index.html.gz").await?
/// .customize()
/// .insert_header(header::ContentEncoding::Gzip))
/// }