From a7b5e60a8c3f9cf7bf87a396a62aeb989f7818c5 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Fri, 10 Jan 2025 20:53:18 +0100 Subject: [PATCH] Fix compilation --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3c9f33c9..95df894d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1932,15 +1932,15 @@ impl RtcConfig { /// Set the crypto provider. /// - /// This happens implicitly if you use [`RtcConfig::set_dtls_cert()`]. + /// This happens implicitly if you use [`RtcConfig::set_dtls_cert_config()`]. /// - /// Panics: If you `set_dtls_cert()` followed by a different [`CryptoProvider`]. + /// Panics: If you `set_dtls_cert_config()` followed by a different [`CryptoProvider`]. /// /// This overrides what is set in [`CryptoProvider::install_process_default()`]. pub fn set_crypto_provider(mut self, p: CryptoProvider) -> Self { if let DtlsCertConfig::PregeneratedCert(c) = &self.dtls_cert_config { if p != c.crypto_provider() { - panic!("set_dtls_cert() locked crypto provider to: {}", p); + panic!("set_dtls_cert_config() locked crypto provider to: {}", p); } } else { self.crypto_provider = p;