From 151702184e3b7ad31260ab1e331faa8311410532 Mon Sep 17 00:00:00 2001 From: Asger Hautop Drewsen Date: Sun, 24 Nov 2024 00:51:32 +0100 Subject: [PATCH] opaque-debug: fix typo in example code (#1139) --- opaque-debug/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opaque-debug/src/lib.rs b/opaque-debug/src/lib.rs index 9e636343..854ad52e 100644 --- a/opaque-debug/src/lib.rs +++ b/opaque-debug/src/lib.rs @@ -22,14 +22,14 @@ //! //! The macro also support generic paramters: //! ``` -//! pub struct GenricCryptoStuff { +//! pub struct GenericCryptoStuff { //! key: K, //! } //! -//! opaque_debug::implement!(GenricCryptoStuff); +//! opaque_debug::implement!(GenericCryptoStuff); //! -//! 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(