diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 25d0e901be6ef61d600dc3cdacc90b322fe45fe2..248d6d6533e47b83798ca9d4a17a207691089990 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -3482,8 +3482,8 @@ impl SslStream { /// Creates a new `SslStream`. /// /// This function performs no IO; the stream will not have performed any part of the handshake - /// with the peer. If the `Ssl` was configured with [`SslRef::set_client_state`] or - /// [`SslRef::set_server_state`], the handshake can be performed automatically during the first + /// with the peer. If the `Ssl` was configured with [`SslRef::set_connect_state`] or + /// [`SslRef::set_accept_state`], the handshake can be performed automatically during the first /// call to read or write. Otherwise the `connect` and `accept` methods can be used to /// explicitly perform the handshake. ///