From dfe84043ea9343755fac65d62fde1be2599e811c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 18 Sep 2024 17:19:30 +0100 Subject: [PATCH] Remove broken example code It makes no sense to supply example Rust in the Javascript bindings, and the presence of this makes tsdoc emit warnings. --- src/vodozemac/ecies.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/vodozemac/ecies.rs b/src/vodozemac/ecies.rs index f37d7ca..ecaf851 100644 --- a/src/vodozemac/ecies.rs +++ b/src/vodozemac/ecies.rs @@ -183,16 +183,6 @@ impl CheckCode { /// /// The number should be displayed with a leading 0 in case the first digit /// is a 0. - /// - /// # Examples - /// - /// ```no_run - /// # use vodozemac::ecies::CheckCode; - /// # let check_code: CheckCode = unimplemented!(); - /// let check_code = check_code.to_digit(); - /// - /// println!("The check code of the IECS channel is: {check_code:02}"); - /// ``` pub fn to_digit(&self) -> u8 { self.inner.to_digit() }