Skip to content

Commit 5d75c72

Browse files
committed
Merge pull request #800 from mayhewj/doc-fixes
docs(*): fix typos, Markdown inconsistencies, and stutter
2 parents 54a9a7d + 8f1c536 commit 5d75c72

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/header/common/prefer.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ use header::parsing::{from_comma_delimited, fmt_comma_delimited};
55

66
/// `Prefer` header, defined in [RFC7240](http://tools.ietf.org/html/rfc7240)
77
///
8-
/// The `Prefer` header field is HTTP header field that can be used by a
9-
/// client to request that certain behaviors be employed by a server
10-
/// while processing a request.
8+
/// The `Prefer` header field can be used by a client to request that certain
9+
/// behaviors be employed by a server while processing a request.
1110
///
1211
/// # ABNF
1312
/// ```plain

src/method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl Method {
7373
}
7474

7575
/// Whether a method is considered "idempotent", meaning the request has
76-
/// the same result is executed multiple times.
76+
/// the same result if executed multiple times.
7777
///
7878
/// See [the spec](https://tools.ietf.org/html/rfc7231#section-4.2.2) for
7979
/// more words.

src/net.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ pub trait Ssl {
179179
fn wrap_server(&self, stream: HttpStream) -> ::Result<Self::Stream>;
180180
}
181181

182-
/// An abstraction to allow any SSL implementation to be used with client-side HttpsStreams.
182+
/// An abstraction to allow any SSL implementation to be used with client-side `HttpsStream`s.
183183
pub trait SslClient {
184184
/// The protected stream.
185185
type Stream: Transport;
186186
/// Wrap a client stream with SSL.
187187
fn wrap_client(&self, stream: HttpStream, host: &str) -> ::Result<Self::Stream>;
188188
}
189189

190-
/// An abstraction to allow any SSL implementation to be used with server-side HttpsStreams.
190+
/// An abstraction to allow any SSL implementation to be used with server-side `HttpsStream`s.
191191
pub trait SslServer {
192192
/// The protected stream.
193193
type Stream: Transport;
@@ -323,7 +323,7 @@ impl<S: Transport> Transport for HttpsStream<S> {
323323
}
324324
}
325325

326-
/// A Http Listener over SSL.
326+
/// An `HttpListener` over SSL.
327327
#[derive(Debug)]
328328
pub struct HttpsListener<S: SslServer> {
329329
listener: TcpListener,
@@ -340,7 +340,7 @@ impl<S: SslServer> HttpsListener<S> {
340340
})
341341
}
342342

343-
/// Construct an HttpsListener from a bound `TcpListener`.
343+
/// Construct an `HttpsListener` from a bound `TcpListener`.
344344
pub fn with_listener(listener: TcpListener, ssl: S) -> HttpsListener<S> {
345345
HttpsListener {
346346
listener: listener,

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! HTTP Server
22
//!
3-
//! A `Server` is created to listen on port, parse HTTP requests, and hand
3+
//! A `Server` is created to listen on a port, parse HTTP requests, and hand
44
//! them off to a `Handler`.
55
use std::fmt;
66
use std::net::SocketAddr;

0 commit comments

Comments
 (0)