From 28fc067aeeff621c006741d08a5cef53f0d33b9d Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 21 Mar 2024 08:40:23 +0800 Subject: [PATCH] Fix typos --- src/errors.rs | 2 +- src/facade.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index ffe0ece..8fac344 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -8,7 +8,7 @@ use thiserror::Error; /// Enum defining all possible error when manipulating OpenSlide struct #[derive(Error, Debug)] pub enum PhilipsSlideError { - /// CxxSring to &str conversion error + /// CxxString to &str conversion error #[error(transparent)] StringConversionError(#[from] Utf8Error), /// PhilipsSlide lib error diff --git a/src/facade.rs b/src/facade.rs index 0d0e46a..e120cc2 100644 --- a/src/facade.rs +++ b/src/facade.rs @@ -70,7 +70,7 @@ impl<'a> Facade<'a> { .filter_map(|cxx_str| cxx_str.to_str().ok())) } - /// Returns the derivation desription + /// Returns the derivation description /// Example: "PHILIPS UFS V1.6.6063 | Quality=1 | DWT=1 | Compressor=16" pub fn derivation_description(&self) -> Result<&str> { Ok(self.inner.derivationDescription()?.to_str()?)