1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-05-20 09:18:26 +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.
//!
//! # Example
//! # Examples
//! ```
//! use actix_web::App;
//! 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
/// generate code, e.g `my_guard` or `my_module::my_guard`.
///
/// # Example
/// # Examples
/// ```
/// # use actix_web::HttpResponse;
#[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.
//!
//! # Example
//! # Examples
//!
//! ```no_run
//! use awc::{Client, ws};

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -17,7 +17,7 @@ crate::http::header::common_header! {
/// # Example Values
/// * `Sat, 29 Oct 1994 19:43:31 GMT`
///
/// # Example
/// # Examples
///
/// ```
/// 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.
///
/// # Example
/// # Examples
/// ```
/// # use actix_web::http::{header::HeaderValue};
/// # 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
/// provided to make this potential foot-gun more obvious.
///
/// # Example
/// # Examples
/// ```no_run
/// # use actix_web::{web, HttpResponse, HttpRequest, Responder, HttpMessage as _};
///