Skip to content

Commit

Permalink
opaque-debug: fix typo in example code (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyilo authored Nov 23, 2024
1 parent b0d1a8a commit 1517021
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opaque-debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
//!
//! The macro also support generic paramters:
//! ```
//! pub struct GenricCryptoStuff<K> {
//! pub struct GenericCryptoStuff<K> {
//! key: K,
//! }
//!
//! opaque_debug::implement!(GenricCryptoStuff<K>);
//! opaque_debug::implement!(GenericCryptoStuff<K>);
//!
//! let val = GenricCryptoStuff { key: [42u8; 16] };
//! assert_eq!(format!("{:?}", val), "GenricCryptoStuff<[u8; 16]> { ... }")
//! let val = GenericCryptoStuff { key: [42u8; 16] };
//! assert_eq!(format!("{:?}", val), "GenericCryptoStuff<[u8; 16]> { ... }")
//! ```
#![no_std]
#![doc(
Expand Down

0 comments on commit 1517021

Please sign in to comment.