Skip to content

Commit

Permalink
Fix incorrect doc test {.should_panic} attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Sep 6, 2024
1 parent 8432c00 commit 4f1c1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tags/media_segment/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<'a> ExtXKey<'a> {
/// );
/// ```
///
/// ```{.should_panic}
/// ```should_panic
/// # use hls_m3u8::tags::ExtXKey;
/// use hls_m3u8::types::DecryptionKey;
///
Expand Down
2 changes: 1 addition & 1 deletion src/types/key_format_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
///
Expand Down

0 comments on commit 4f1c1fe

Please sign in to comment.