From 3355ccca678875ab4ad7c136e443f7522cfe7403 Mon Sep 17 00:00:00 2001 From: Evan Rittenhouse Date: Tue, 4 Feb 2025 07:57:15 -0600 Subject: [PATCH] chore: Fix docs on SslRef::replace_ex_data --- boring/src/ssl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {