diff --git a/wrapper/rust/wolfssl-wolfcrypt/src/ecc.rs b/wrapper/rust/wolfssl-wolfcrypt/src/ecc.rs index 1049e7e2a43..3e3254a875d 100644 --- a/wrapper/rust/wolfssl-wolfcrypt/src/ecc.rs +++ b/wrapper/rust/wolfssl-wolfcrypt/src/ecc.rs @@ -1300,8 +1300,8 @@ impl ECC { /// /// # Returns /// - /// Returns either Ok(ECC) containing the ECC struct instance or Err(e) - /// containing the wolfSSL library error code value. + /// Returns either Ok(()) if the key is ok or Err(e) containing the wolfSSL + /// library error code value. /// /// # Example ///