Skip to content

Commit 3355ccc

Browse files
evanrittenhouseghedo
authored andcommitted
chore: Fix docs on SslRef::replace_ex_data
1 parent 76b5926 commit 3355ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boring/src/ssl/mod.rs

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

0 commit comments

Comments
 (0)