1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-29 04:51:13 +00:00

s/example/examples

This commit is contained in:
Rob Ede 2022-01-21 16:56:33 +00:00
parent c959916346
commit bc89f0bfc2
No known key found for this signature in database
GPG key ID: 97C636207D3EF933
11 changed files with 11 additions and 11 deletions

View file

@ -2,7 +2,7 @@
//! //!
//! Provides a non-blocking service for serving static files from disk. //! Provides a non-blocking service for serving static files from disk.
//! //!
//! # Example //! # Examples
//! ``` //! ```
//! use actix_web::App; //! use actix_web::App;
//! use actix_files::Files; //! use actix_files::Files;

View file

@ -124,7 +124,7 @@ macro_rules! method_macro {
/// Function name can be specified as any expression that is going to be accessible to the /// Function name can be specified as any expression that is going to be accessible to the
/// generate code, e.g `my_guard` or `my_module::my_guard`. /// generate code, e.g `my_guard` or `my_module::my_guard`.
/// ///
/// # Example /// # Examples
/// ``` /// ```
/// # use actix_web::HttpResponse; /// # use actix_web::HttpResponse;
#[doc = concat!("# use actix_web_codegen::", stringify!($method), ";")] #[doc = concat!("# use actix_web_codegen::", stringify!($method), ";")]

View file

@ -2,7 +2,7 @@
//! //!
//! Type definitions required to use [`awc::Client`](super::Client) as a WebSocket client. //! Type definitions required to use [`awc::Client`](super::Client) as a WebSocket client.
//! //!
//! # Example //! # Examples
//! //!
//! ```no_run //! ```no_run
//! use awc::{Client, ws}; //! use awc::{Client, ws};

View file

@ -24,7 +24,7 @@ async fn main() -> std::io::Result<()> {
App::new() App::new()
.wrap(middleware::DefaultHeaders::new().add(("X-Version", "0.2"))) .wrap(middleware::DefaultHeaders::new().add(("X-Version", "0.2")))
.wrap(middleware::Compress::default()) .wrap(middleware::Compress::default())
.wrap(middleware::Logger::default()) .wrap(middleware::Logger::default().log_target("1234"))
.service(index) .service(index)
.service(no_params) .service(no_params)
.service( .service(

View file

@ -16,7 +16,7 @@ crate::http::header::common_header! {
/// # Example Values /// # Example Values
/// * `Tue, 15 Nov 1994 08:12:31 GMT` /// * `Tue, 15 Nov 1994 08:12:31 GMT`
/// ///
/// # Example /// # Examples
/// ///
/// ``` /// ```
/// use std::time::SystemTime; /// use std::time::SystemTime;

View file

@ -19,7 +19,7 @@ crate::http::header::common_header! {
/// # Example Values /// # Example Values
/// * `Thu, 01 Dec 1994 16:00:00 GMT` /// * `Thu, 01 Dec 1994 16:00:00 GMT`
/// ///
/// # Example /// # Examples
/// ///
/// ``` /// ```
/// use std::time::{SystemTime, Duration}; /// use std::time::{SystemTime, Duration};

View file

@ -18,7 +18,7 @@ crate::http::header::common_header! {
/// # Example Values /// # Example Values
/// * `Sat, 29 Oct 1994 19:43:31 GMT` /// * `Sat, 29 Oct 1994 19:43:31 GMT`
/// ///
/// # Example /// # Examples
/// ///
/// ``` /// ```
/// use std::time::{SystemTime, Duration}; /// use std::time::{SystemTime, Duration};

View file

@ -18,7 +18,7 @@ crate::http::header::common_header! {
/// # Example Values /// # Example Values
/// * `Sat, 29 Oct 1994 19:43:31 GMT` /// * `Sat, 29 Oct 1994 19:43:31 GMT`
/// ///
/// # Example /// # Examples
/// ///
/// ``` /// ```
/// use std::time::{SystemTime, Duration}; /// use std::time::{SystemTime, Duration};

View file

@ -17,7 +17,7 @@ crate::http::header::common_header! {
/// # Example Values /// # Example Values
/// * `Sat, 29 Oct 1994 19:43:31 GMT` /// * `Sat, 29 Oct 1994 19:43:31 GMT`
/// ///
/// # Example /// # Examples
/// ///
/// ``` /// ```
/// use std::time::{SystemTime, Duration}; /// use std::time::{SystemTime, Duration};

View file

@ -124,7 +124,7 @@ impl Logger {
/// ///
/// It is convention to print "-" to indicate no output instead of an empty string. /// It is convention to print "-" to indicate no output instead of an empty string.
/// ///
/// # Example /// # Examples
/// ``` /// ```
/// # use actix_web::http::{header::HeaderValue}; /// # use actix_web::http::{header::HeaderValue};
/// # use actix_web::middleware::Logger; /// # use actix_web::middleware::Logger;

View file

@ -24,7 +24,7 @@ use crate::{
/// re-insert the cloned data back into the extensions map. A `DerefMut` impl is intentionally not /// re-insert the cloned data back into the extensions map. A `DerefMut` impl is intentionally not
/// provided to make this potential foot-gun more obvious. /// provided to make this potential foot-gun more obvious.
/// ///
/// # Example /// # Examples
/// ```no_run /// ```no_run
/// # use actix_web::{web, HttpResponse, HttpRequest, Responder, HttpMessage as _}; /// # use actix_web::{web, HttpResponse, HttpRequest, Responder, HttpMessage as _};
/// ///