summaryrefslogtreecommitdiff
path: root/openssl/src/ssl/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/ssl/mod.rs')
-rw-r--r--openssl/src/ssl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 25d0e901..248d6d65 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -3482,8 +3482,8 @@ impl<S: Read + Write> SslStream<S> {
/// 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.
///