Skip to content

docs(lib): fixup markdown and grammar in doc comments#4074

Merged
seanmonstar merged 1 commit into
masterfrom
sean/uxollxspyypt
May 20, 2026
Merged

docs(lib): fixup markdown and grammar in doc comments#4074
seanmonstar merged 1 commit into
masterfrom
sean/uxollxspyypt

Conversation

@seanmonstar
Copy link
Copy Markdown
Member

cc #4071

@seanmonstar seanmonstar merged commit 5dbcae7 into master May 20, 2026
22 checks passed
Comment thread src/proto/h1/conn.rs
struct State {
allow_half_close: bool,
/// Re-usable HeaderMap to reduce allocating new ones.
/// Re-usable `HeaderMap` to reduce allocating new ones.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Re-usable `HeaderMap` to reduce allocating new ones.
/// Re-usable [`HeaderMap`] to reduce allocating new ones.

this can be a doc link

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yea, it could be... Clippy didn't notice, and these specific comments aren't rendered into HTML 🤷

@seanmonstar seanmonstar deleted the sean/uxollxspyypt branch May 20, 2026 19:12
Copy link
Copy Markdown
Member

@cratelyn cratelyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this already got merged, but these would be nice intradoc links to add.

Comment thread src/client/dispatch.rs
#[cfg(feature = "http2")]
pub(crate) struct UnboundedSender<T, U> {
/// Only used for `is_closed`, since mpsc::UnboundedSender cannot be checked.
/// Only used for `is_closed`, since `mpsc::UnboundedSender` cannot be checked.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Only used for `is_closed`, since `mpsc::UnboundedSender` cannot be checked.
/// Only used for `is_closed`, since [`mpsc::UnboundedSender`] cannot be checked.

Comment thread src/error.rs
))]
BodyWrite,
/// Error calling AsyncWrite::shutdown()
/// Error calling `AsyncWrite::shutdown()`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Error calling `AsyncWrite::shutdown()`.
/// Error calling [`AsyncWrite::shutdown()`].

Comment thread src/error.rs
#[derive(Debug)]
pub(super) enum User {
/// Error calling user's Body::poll_data().
/// Error calling the user's `Body::poll_data()`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Error calling the user's `Body::poll_data()`.
/// Error calling the user's [`Body::poll_data()`].

@seanmonstar
Copy link
Copy Markdown
Member Author

Sorry I merged so quickly, I didn't think it'd be interesting. I'll slow down 🙈

@cratelyn
Copy link
Copy Markdown
Member

Sorry I merged so quickly, I didn't think it'd be interesting. I'll slow down 🙈

no worries! they're just nits 😝

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.

2 participants