diff --git a/actix-http/src/ws/proto.rs b/actix-http/src/ws/proto.rs index df928cdb..ad42b7a6 100644 --- a/actix-http/src/ws/proto.rs +++ b/actix-http/src/ws/proto.rs @@ -95,7 +95,7 @@ pub enum CloseCode { Abnormal, /// Indicates that an endpoint is terminating the connection /// because it has received data within a message that was not - /// consistent with the type of the message (e.g., non-UTF-8 [RFC3629] + /// consistent with the type of the message (e.g., non-UTF-8 \[RFC3629\] /// data within a text message). Invalid, /// Indicates that an endpoint is terminating the connection diff --git a/src/app.rs b/src/app.rs index ce4f1f01..e0f56a1a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -227,9 +227,9 @@ where /// Set server host name. /// - /// Host name is used by application router as a hostname for url - /// generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo. - /// html#method.host) documentation for more information. + /// Host name is used by application router as a hostname for url generation. + /// Check [ConnectionInfo](./dev/struct.ConnectionInfo.html#method.host) + /// documentation for more information. /// /// By default host name is set to a "localhost" value. pub fn hostname(mut self, val: &str) -> Self { diff --git a/src/config.rs b/src/config.rs index 57ba1007..d57791e1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -133,9 +133,9 @@ impl AppConfig { /// Set server host name. /// - /// Host name is used by application router as a hostname for url - /// generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo. - /// html#method.host) documentation for more information. + /// Host name is used by application router as a hostname for url generation. + /// Check [ConnectionInfo](./struct.ConnectionInfo.html#method.host) + /// documentation for more information. /// /// By default host name is set to a "localhost" value. pub fn host(&self) -> &str { diff --git a/src/server.rs b/src/server.rs index a4569ce3..8ee94420 100644 --- a/src/server.rs +++ b/src/server.rs @@ -180,9 +180,11 @@ where /// Set server host name. /// - /// Host name is used by application router as a hostname for url - /// generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo. - /// html#method.host) documentation for more information. + /// Host name is used by application router as a hostname for url generation. + /// Check [ConnectionInfo](./dev/struct.ConnectionInfo.html#method.host) + /// documentation for more information. + /// + /// By default host name is set to a "localhost" value. pub fn server_hostname>(mut self, val: T) -> Self { self.host = Some(val.as_ref().to_owned()); self