Skip to content

Commit 1517021

Browse files
authored
opaque-debug: fix typo in example code (#1139)
1 parent b0d1a8a commit 1517021

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opaque-debug/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
//!
2323
//! The macro also support generic paramters:
2424
//! ```
25-
//! pub struct GenricCryptoStuff<K> {
25+
//! pub struct GenericCryptoStuff<K> {
2626
//! key: K,
2727
//! }
2828
//!
29-
//! opaque_debug::implement!(GenricCryptoStuff<K>);
29+
//! opaque_debug::implement!(GenericCryptoStuff<K>);
3030
//!
31-
//! let val = GenricCryptoStuff { key: [42u8; 16] };
32-
//! assert_eq!(format!("{:?}", val), "GenricCryptoStuff<[u8; 16]> { ... }")
31+
//! let val = GenericCryptoStuff { key: [42u8; 16] };
32+
//! assert_eq!(format!("{:?}", val), "GenericCryptoStuff<[u8; 16]> { ... }")
3333
//! ```
3434
#![no_std]
3535
#![doc(

0 commit comments

Comments
 (0)