chore: Fix docs on SslRef::replace_ex_data

This commit is contained in:
Evan Rittenhouse 2025-02-04 07:57:15 -06:00 committed by Alessandro Ghedini
parent 76b592673f
commit 3355ccca67
1 changed files with 1 additions and 1 deletions

View File

@ -3496,7 +3496,7 @@ impl SslRef {
/// This can be used to provide data to callbacks registered with the context. Use the
/// `Ssl::new_ex_index` method to create an `Index`.
///
/// Any previous value will be dropped and replaced by the new one.
/// The previous value, if any, will be returned.
#[corresponds(SSL_set_ex_data)]
pub fn replace_ex_data<T>(&mut self, index: Index<Ssl, T>, data: T) -> Option<T> {
if let Some(old) = self.ex_data_mut(index) {