diff --git a/boring/src/ssl/mod.rs b/boring/src/ssl/mod.rs index 99a2950f..d4d317a5 100644 --- a/boring/src/ssl/mod.rs +++ b/boring/src/ssl/mod.rs @@ -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(&mut self, index: Index, data: T) -> Option { if let Some(old) = self.ex_data_mut(index) {