diff --git a/examples/diesel/src/db.rs b/examples/diesel/src/db.rs index 04daa6ed..4ca85130 100644 --- a/examples/diesel/src/db.rs +++ b/examples/diesel/src/db.rs @@ -8,7 +8,7 @@ use diesel::prelude::*; use models; use schema; -/// This is db executor actor. We are going to run 3 of them in parallele. +/// This is db executor actor. We are going to run 3 of them in parallel. pub struct DbExecutor(pub SqliteConnection); /// This is only message that this actor can handle, but it is easy to extend number of diff --git a/examples/state/src/main.rs b/examples/state/src/main.rs index 8216be24..5bb7e504 100644 --- a/examples/state/src/main.rs +++ b/examples/state/src/main.rs @@ -1,5 +1,5 @@ #![cfg_attr(feature="cargo-clippy", allow(needless_pass_by_value))] -//! There are two level of statfulness in actix-web. Application has state +//! There are two level of statefulness in actix-web. Application has state //! that is shared across all handlers within same Application. //! And individual handler can have state. diff --git a/examples/tls/src/main.rs b/examples/tls/src/main.rs index 15cfcc66..03a3e506 100644 --- a/examples/tls/src/main.rs +++ b/examples/tls/src/main.rs @@ -9,7 +9,7 @@ use std::io::Read; use actix_web::*; -/// somple handle +/// simple handle fn index(req: HttpRequest) -> Result { println!("{:?}", req); Ok(httpcodes::HTTPOk diff --git a/examples/websocket-chat/README.md b/examples/websocket-chat/README.md index 28d734dd..a01dd68b 100644 --- a/examples/websocket-chat/README.md +++ b/examples/websocket-chat/README.md @@ -16,8 +16,8 @@ Chat server listens for incoming tcp connections. Server can access several type * `\list` - list all available rooms * `\join name` - join room, if room does not exist, create new one * `\name name` - set session name -* `some message` - just string, send messsage to all peers in same room -* client has to send heartbeat `Ping` messages, if server does not receive a heartbeat message for 10 seconds connection gets droppped +* `some message` - just string, send message to all peers in same room +* client has to send heartbeat `Ping` messages, if server does not receive a heartbeat message for 10 seconds connection gets dropped To start server use command: `cargo run --bin server` diff --git a/examples/websocket-chat/src/session.rs b/examples/websocket-chat/src/session.rs index b0725fde..66062533 100644 --- a/examples/websocket-chat/src/session.rs +++ b/examples/websocket-chat/src/session.rs @@ -16,7 +16,7 @@ use codec::{ChatRequest, ChatResponse, ChatCodec}; #[derive(Message)] pub struct Message(pub String); -/// `ChatSession` actor is responsible for tcp peer communitions. +/// `ChatSession` actor is responsible for tcp peer communications. pub struct ChatSession { /// unique session id id: usize, @@ -30,7 +30,7 @@ pub struct ChatSession { impl Actor for ChatSession { /// For tcp communication we are going to use `FramedContext`. - /// It is convinient wrapper around `Framed` object from `tokio_io` + /// It is convenient wrapper around `Framed` object from `tokio_io` type Context = FramedContext; fn started(&mut self, ctx: &mut Self::Context) { @@ -149,7 +149,7 @@ impl ChatSession { } -/// Define tcp server that will accept incomint tcp connection and create +/// Define tcp server that will accept incoming tcp connection and create /// chat actors. pub struct TcpServer { chat: SyncAddress, diff --git a/src/application.rs b/src/application.rs index 62ed470b..047364b8 100644 --- a/src/application.rs +++ b/src/application.rs @@ -156,7 +156,7 @@ impl Application where S: 'static { /// Set application prefix /// /// Only requests that matches application's prefix get processed by this application. - /// Application prefix always contains laading "/" slash. If supplied prefix + /// Application prefix always contains leading "/" slash. If supplied prefix /// does not contain leading slash, it get inserted. Prefix should /// consists valid path segments. i.e for application with /// prefix `/app` any request with following paths `/app`, `/app/` or `/app/test` diff --git a/src/handler.rs b/src/handler.rs index 561ee77b..16de0583 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -341,7 +341,7 @@ impl Default for NormalizePath { } impl NormalizePath { - /// Create new `NoramlizePath` instance + /// Create new `NormalizePath` instance pub fn new(append: bool, merge: bool, redirect: StatusCode) -> NormalizePath { NormalizePath { append: append, diff --git a/src/middleware/cors.rs b/src/middleware/cors.rs index 5c55c188..c495a31e 100644 --- a/src/middleware/cors.rs +++ b/src/middleware/cors.rs @@ -214,7 +214,7 @@ impl Cors { /// This method register cors middleware with resource and /// adds route for *OPTIONS* preflight requests. /// - /// It is possible to register *Cors* middlware with `Resource::middleware()` + /// It is possible to register *Cors* middleware with `Resource::middleware()` /// method, but in that case *Cors* middleware wont be able to handle *OPTIONS* /// requests. pub fn register(self, resource: &mut Resource) { diff --git a/src/server/h1.rs b/src/server/h1.rs index dce67755..4de37ebe 100644 --- a/src/server/h1.rs +++ b/src/server/h1.rs @@ -1206,7 +1206,7 @@ mod tests { let mut buf = Buffer::new( "GET /test HTTP/1.1\r\n\ - transfer-encoding: chnked\r\n\r\n"); + transfer-encoding: chunked\r\n\r\n"); let req = parse_ready!(&mut buf); if let Ok(val) = req.chunked() {