Skip to content

doc: fix warning documentation HTML tags - #2486

Open
jasonaowen wants to merge 2 commits into
RustCrypto:masterfrom
jasonaowen:doc-fix-warnings
Open

doc: fix warning documentation HTML tags#2486
jasonaowen wants to merge 2 commits into
RustCrypto:masterfrom
jasonaowen:doc-fix-warnings

Conversation

@jasonaowen

Copy link
Copy Markdown

Fix several rustdoc warnings about HTML tags in warning sections.

Before:

Screen Shot 2026-08-12 at 17 09 53

After:

Screen Shot 2026-08-12 at 17 10 13

In commit 8e54074, the warnings on
several `StreamCipher` methods were changed into sections that should
have had the `warning` CSS class. Unfortunately, the HTML was malformed,
and the resulting documentation rendered the sections as all-bold
instead of with the rustdoc warning style.

Fix the HTML in the `StreamCipher::unchecked_*` methods.
Resolve rustdoc warnings about unopened HTML tags and unclosed HTML tags
by replacing the former with the correct closing tags for the latter.

Also add additional spacing between markdown and HTML, as suggested in
the rustdoc book[1].

[1] https://doc.rust-lang.org/rustdoc/how-to-write-documentation.html#adding-a-warning-block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant