Skip to content

Commit

Permalink
Remove broken example code
Browse files Browse the repository at this point in the history
It makes no sense to supply example Rust in the Javascript bindings, and the
presence of this makes tsdoc emit warnings.
  • Loading branch information
richvdh committed Sep 24, 2024
1 parent ef0e2ff commit dfe8404
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/vodozemac/ecies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit dfe8404

Please sign in to comment.