From 4f1c1fe32c80b1375cc22b0927a49f81efdf0275 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Fri, 6 Sep 2024 21:35:11 +0900 Subject: [PATCH] Fix incorrect doc test `{.should_panic}` attribute --- src/tags/media_segment/key.rs | 2 +- src/types/key_format_versions.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tags/media_segment/key.rs b/src/tags/media_segment/key.rs index 74549ea..7880c61 100644 --- a/src/tags/media_segment/key.rs +++ b/src/tags/media_segment/key.rs @@ -117,7 +117,7 @@ impl<'a> ExtXKey<'a> { /// ); /// ``` /// - /// ```{.should_panic} + /// ```should_panic /// # use hls_m3u8::tags::ExtXKey; /// use hls_m3u8::types::DecryptionKey; /// diff --git a/src/types/key_format_versions.rs b/src/types/key_format_versions.rs index 021dcdf..dcd0ec4 100644 --- a/src/types/key_format_versions.rs +++ b/src/types/key_format_versions.rs @@ -82,7 +82,7 @@ impl KeyFormatVersions { /// /// This will panic, because it exceeded the maximum number of elements: /// - /// ```{.should_panic} + /// ```should_panic /// # use hls_m3u8::types::KeyFormatVersions; /// let mut versions = KeyFormatVersions::new(); ///