Skip to content

Commit

Permalink
Update docs extra
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Nov 3, 2024
1 parent 009e00e commit 25aab85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tls/rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl TlsStream<TokioTcpStream> {
///
/// If `url` is given, but does not specify a port, it defaults to 7419.
///
/// Internally creates a [`ClientConfig`](https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html)
/// Internally, creates a [`ClientConfig`](https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html)
/// with an _empty_ root certificates store and _no client authentication_.
///
/// Use [`with_client_config`](TlsStream::with_client_config) or [`with_connector`](TlsStream::with_connector)
Expand Down Expand Up @@ -119,10 +119,10 @@ where
{
/// Create a new TLS connection on an existing stream.
///
/// Internally creates a `ClientConfig` with an empty root certificates store and no client
/// authentication.
/// Internally, creates a [`ClientConfig`](https://docs.rs/tokio-native-tls/latest/tokio_native_tls/native_tls/struct.TlsConnector.html)
/// with an empty root certificates store and no client authentication.
///
/// Use [`new`](TlsStream::new) for a customized `TlsConnector`.
/// Use [`new`](TlsStream::new) for a customized [`TlsConnector`](https://docs.rs/tokio-rustls/latest/tokio_rustls/struct.TlsConnector.html)
pub async fn default(stream: S, hostname: String) -> io::Result<Self> {
let conf = ClientConfig::builder()
.with_root_certificates(RootCertStore::empty())
Expand Down

0 comments on commit 25aab85

Please sign in to comment.