mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 11:01:14 +00:00
s/example/examples
This commit is contained in:
parent
c959916346
commit
bc89f0bfc2
11 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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), ";")]
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 _};
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue