Skip to content

Commit b2cb79b

Browse files
author
Jakob Gerstmayer
committed
fixed example
1 parent 27dd5db commit b2cb79b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hal/src/aes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ impl Aes {
785785
/// * Key is not 128-bits long `[u32; 4]` or 256-bits long `[u32; 8]`.
786786
///
787787
/// # Example
788-
/// TODO CHANGE
788+
///
789789
/// ```no_run
790790
/// use stm32wlxx_hal::{aes::Aes, pac};
791791
///
@@ -797,7 +797,7 @@ impl Aes {
797797
///
798798
/// let plaintext: [u32; 4] = [0xf34481ec, 0x3cc627ba, 0xcd5dc3fb, 0x08f273e6];
799799
/// let mut ciphertext: [u32; 4] = [0; 4];
800-
/// aes.(encrypt_cbc(&KEY, &IV, &plaintext, &mut ciphertext)?;
800+
/// aes.encrypt_cbc(&KEY, &IV, &plaintext, &mut ciphertext)?;
801801
/// # Ok::<(), stm32wlxx_hal::aes::Error>(())
802802
/// ```
803803
pub fn encrypt_cbc(

0 commit comments

Comments
 (0)